diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-06-22 08:58:15 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-06-22 08:58:15 +0530 |
commit | 21e335f6d2b67f4e5c9f339bcbf9eb899b447515 (patch) | |
tree | 2e82261436b75ad642b95baff02de8220ed32b07 /.github/workflows/homebrew-cask-updates.yml | |
parent | Bypass signing for linux and windows for non-nightly and non-release builds (diff) | |
download | ferdium-app-21e335f6d2b67f4e5c9f339bcbf9eb899b447515.tar.gz ferdium-app-21e335f6d2b67f4e5c9f339bcbf9eb899b447515.tar.zst ferdium-app-21e335f6d2b67f4e5c9f339bcbf9eb899b447515.zip |
Added workflows to publish on beta and release builds
Diffstat (limited to '.github/workflows/homebrew-cask-updates.yml')
-rw-r--r-- | .github/workflows/homebrew-cask-updates.yml | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/.github/workflows/homebrew-cask-updates.yml b/.github/workflows/homebrew-cask-updates.yml index 97ac3ed57..aa8d605c2 100644 --- a/.github/workflows/homebrew-cask-updates.yml +++ b/.github/workflows/homebrew-cask-updates.yml | |||
@@ -1,4 +1,5 @@ | |||
1 | name: bump-ferdium-casks | 1 | name: Homebrew cask updates |
2 | |||
2 | on: | 3 | on: |
3 | release: | 4 | release: |
4 | types: [published] | 5 | types: [published] |
@@ -9,14 +10,39 @@ jobs: | |||
9 | bump-casks: | 10 | bump-casks: |
10 | runs-on: macos-latest | 11 | runs-on: macos-latest |
11 | steps: | 12 | steps: |
12 | - uses: macauley/action-homebrew-bump-cask@v1 | 13 | - name: Publish nightly |
14 | uses: macauley/action-homebrew-bump-cask@v1 | ||
15 | if: contains(${{ github.event.release.tag_name }}, "nightly") | ||
13 | with: | 16 | with: |
14 | # Required, custom GitHub access token with only the 'public_repo' scope enabled | 17 | # Required, custom GitHub access token with only the 'public_repo' scope enabled |
15 | token: ${{secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN}} | 18 | token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }} |
16 | # Bump all outdated casks in this tap | 19 | # Bump all outdated casks in this tap |
17 | tap: ferdium/homebrew-ferdium | 20 | tap: ferdium/homebrew-ferdium |
18 | # Bump only these casks if outdated | 21 | # Bump only these casks if outdated |
19 | cask: ferdium-nightly | 22 | cask: ferdium-nightly |
20 | livecheck: true | 23 | livecheck: true |
21 | dryrun: false | 24 | dryrun: false |
22 | # TODO: Need separate ones for the beta and public builds | 25 | - name: Publish beta |
26 | uses: macauley/action-homebrew-bump-cask@v1 | ||
27 | if: contains(${{ github.event.release.tag_name }}, "beta") | ||
28 | with: | ||
29 | # Required, custom GitHub access token with only the 'public_repo' scope enabled | ||
30 | token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }} | ||
31 | # Bump all outdated casks in this tap | ||
32 | tap: ferdium/homebrew-ferdium | ||
33 | # Bump only these casks if outdated | ||
34 | cask: ferdium-beta | ||
35 | livecheck: true | ||
36 | dryrun: false | ||
37 | - name: Publish release | ||
38 | uses: macauley/action-homebrew-bump-cask@v1 | ||
39 | if: ${{ !contains(${{ github.event.release.tag_name }}, "nightly") && !contains(${{ github.event.release.tag_name }}, "beta") }} | ||
40 | with: | ||
41 | # Required, custom GitHub access token with only the 'public_repo' scope enabled | ||
42 | token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }} | ||
43 | # Bump all outdated casks in this tap | ||
44 | tap: ferdium/homebrew-ferdium | ||
45 | # Bump only these casks if outdated | ||
46 | cask: ferdium | ||
47 | livecheck: true | ||
48 | dryrun: false | ||