From 21e335f6d2b67f4e5c9f339bcbf9eb899b447515 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 22 Jun 2022 08:58:15 +0530 Subject: Added workflows to publish on beta and release builds --- .github/workflows/homebrew-cask-updates.yml | 34 +++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) (limited to '.github/workflows/homebrew-cask-updates.yml') 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 @@ -name: bump-ferdium-casks +name: Homebrew cask updates + on: release: types: [published] @@ -9,14 +10,39 @@ jobs: bump-casks: runs-on: macos-latest steps: - - uses: macauley/action-homebrew-bump-cask@v1 + - name: Publish nightly + uses: macauley/action-homebrew-bump-cask@v1 + if: contains(${{ github.event.release.tag_name }}, "nightly") with: # Required, custom GitHub access token with only the 'public_repo' scope enabled - token: ${{secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN}} + token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }} # Bump all outdated casks in this tap tap: ferdium/homebrew-ferdium # Bump only these casks if outdated cask: ferdium-nightly livecheck: true dryrun: false -# TODO: Need separate ones for the beta and public builds + - name: Publish beta + uses: macauley/action-homebrew-bump-cask@v1 + if: contains(${{ github.event.release.tag_name }}, "beta") + with: + # Required, custom GitHub access token with only the 'public_repo' scope enabled + token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }} + # Bump all outdated casks in this tap + tap: ferdium/homebrew-ferdium + # Bump only these casks if outdated + cask: ferdium-beta + livecheck: true + dryrun: false + - name: Publish release + uses: macauley/action-homebrew-bump-cask@v1 + if: ${{ !contains(${{ github.event.release.tag_name }}, "nightly") && !contains(${{ github.event.release.tag_name }}, "beta") }} + with: + # Required, custom GitHub access token with only the 'public_repo' scope enabled + token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }} + # Bump all outdated casks in this tap + tap: ferdium/homebrew-ferdium + # Bump only these casks if outdated + cask: ferdium + livecheck: true + dryrun: false -- cgit v1.2.3-70-g09d2