aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-06-22 08:58:15 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-06-22 08:58:15 +0530
commit21e335f6d2b67f4e5c9f339bcbf9eb899b447515 (patch)
tree2e82261436b75ad642b95baff02de8220ed32b07 /.github
parentBypass signing for linux and windows for non-nightly and non-release builds (diff)
downloadferdium-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')
-rw-r--r--.github/workflows/homebrew-cask-updates.yml34
-rw-r--r--.github/workflows/reddit.yml4
2 files changed, 32 insertions, 6 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 @@
1name: bump-ferdium-casks 1name: Homebrew cask updates
2
2on: 3on:
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
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 @@
1name: Release 1name: Publish to Reddit
2 2
3on: 3on:
4 release: 4 release:
@@ -18,5 +18,5 @@ jobs:
18 subreddit: ferdium # Submit to /r/ferdium 18 subreddit: ferdium # Submit to /r/ferdium
19 title: "[Release] Ferdium ${{ github.event.release.tag_name }}" 19 title: "[Release] Ferdium ${{ github.event.release.tag_name }}"
20 # flair-id: "7aa4f288-bf0d-11ec-a939-8e36666e1f23" 20 # flair-id: "7aa4f288-bf0d-11ec-a939-8e36666e1f23"
21 comment: ${{ github.event.release.body }} 21 comment: "${{ github.event.release.body }}"
22 notification: true 22 notification: true