Skip to content

Commit

Permalink
Merge pull request #83 from readdle/automate-release
Browse files Browse the repository at this point in the history
automate version release with GitHub actions
  • Loading branch information
pastey authored Jul 29, 2024
2 parents 3e94589 + 955b1c8 commit de6b433
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 de6b433

Please sign in to comment.