Skip to content

Commit f2480b1

Browse files
committed
ci: Add job to update the Homebrew cask on release
1 parent dc638ea commit f2480b1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/bundle.yml

+25
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,28 @@ jobs:
184184
AWS_EC2_METADATA_DISABLED: true
185185
run: |
186186
aws s3 cp --endpoint-url ${{ vars.S3_ENDPOINT }} manifest.json s3://${{ vars.S3_BUCKET }}/updates/latest.json
187+
188+
update-homebrew-cask:
189+
name: Update Homebrew cask
190+
needs: [bundle, publish-version]
191+
environment: bundle-publish
192+
runs-on: ubuntu-latest
193+
env:
194+
VERSION: ${{ needs.bundle.outputs.tag }}
195+
196+
steps:
197+
- name: Checkout code
198+
uses: actions/checkout@v4
199+
with:
200+
repository: prose-im/homebrew-tap
201+
token: ${{ secrets.HOMEBREW_TAP_ACCESS_TOKEN }}
202+
203+
# NOTE: Recommended by [the Task documentation](https://taskfile.dev/installation/#github-actions).
204+
- name: Install Task
205+
uses: arduino/setup-task@v2
206+
207+
- name: Update the cask
208+
run: task update:prose -- "${{ env.VERSION }}" -y --commit
209+
210+
- name: Update the tap
211+
run: git push origin master

0 commit comments

Comments
 (0)