mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
2233b46512
* ci: format yaml and json files with prettier * chore: add changelog entry * fix: format everything * ci: run pretter on all files * ci: rename prettier step
27 lines
961 B
YAML
27 lines
961 B
YAML
name: "Publish Homebrew Cask on Release"
|
|
on:
|
|
push:
|
|
tags:
|
|
# Should match semver for mainline releases (not including -beta)
|
|
- "v2.[0-9]+.[0-9]+"
|
|
# TODO: handle beta and nightly releases
|
|
# Need to make those casks manually first
|
|
# - v2.[0-9]+.[0-9]+-beta(?:[0-9]+)
|
|
|
|
env:
|
|
# This gets updated later on in the run by a bash script to strip the prefix
|
|
C2_CASK_NAME: chatterino
|
|
C2_TAGGED_VERSION: ${{ github.ref_name }}
|
|
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
|
|
|
jobs:
|
|
update_stable_homebrew_cask:
|
|
name: "Update the stable homebrew cask"
|
|
runs-on: "macos-latest"
|
|
steps:
|
|
# Pulls out the version from the ref (e.g. refs/tags/v2.3.1 -> 2.3.1)
|
|
- name: Execute brew bump-cask-pr with version
|
|
run: |
|
|
echo "Running bump-cask-pr for cask '$C2_CASK_NAME' and version '$C2_TAGGED_VERSION'"
|
|
brew bump-cask-pr --version "$C2_TAGGED_VERSION" "$C2_CASK_NAME"
|