Skip to content

Commit

Permalink
automate version release with GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pastey committed Jul 27, 2024
1 parent 3e94589 commit 955b1c8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- v*.*.*

jobs:
release:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build executable for release
run: |
sh buildme.sh
- name: Compress archive
run: |
tar -czf s7.tar.gz -C "$HOME/bin/" s7
- name: Release
uses: softprops/action-gh-release@v1
with:
files: s7.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: s7
homebrew-tap: readdle/homebrew-readdle
base-branch: main
download-url: https://github.com/readdle/system7/releases/download/${{ github.ref_name }}/s7.tar.gz
env:
COMMITTER_TOKEN: ${{ secrets.S7_BREW_FORMULA_AUTOMATION }}

0 comments on commit 955b1c8

Please sign in to comment.