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 +++++++++++++++++++++++++---- .github/workflows/reddit.yml | 4 ++-- 2 files changed, 32 insertions(+), 6 deletions(-) (limited to '.github') 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 diff --git a/.github/workflows/reddit.yml b/.github/workflows/reddit.yml index e387c6491..260b586d8 100644 --- a/.github/workflows/reddit.yml +++ b/.github/workflows/reddit.yml @@ -1,4 +1,4 @@ -name: Release +name: Publish to Reddit on: release: @@ -18,5 +18,5 @@ jobs: subreddit: ferdium # Submit to /r/ferdium title: "[Release] Ferdium ${{ github.event.release.tag_name }}" # flair-id: "7aa4f288-bf0d-11ec-a939-8e36666e1f23" - comment: ${{ github.event.release.body }} + comment: "${{ github.event.release.body }}" notification: true -- cgit v1.2.3-54-g00ecf