Skip to content

Commit

Permalink
Fix homebrew release
Browse files Browse the repository at this point in the history
  • Loading branch information
BarredEwe committed Feb 28, 2025
1 parent 80a880c commit 29d45cf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,34 @@ on:

jobs:
release:
name: Create Release
runs-on: macos-15
permissions: write-all
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Create achrive
run: make archive
- name: Upload Release
uses: actions/upload-artifact@v4
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: prefire.tar.gz
path: prefire.tar.gz
generate_release_notes: true
files: prefire.tar.gz

update-homebrew:
needs: release
runs-on: macos-15
permissions: write-all
permissions:
contents: read
steps:
- name: upgrade-brew-tap
uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: prefire
homebrew-tap: barredewe/homebrew-tap
tag-name: ${{ github.event.inputs.tag-name }}
formula-name: Prefire
homebrew-tap: barredewe/homebrew-prefire
tag-name: ${{ github.ref_name }}
download-url: "https://github.com/barredewe/prefire/releases/download/${{ github.ref_name }}/prefire.tar.gz"
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
4 changes: 2 additions & 2 deletions Binaries/PrefireBinary.artifactbundle/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"artifacts": {
"PrefireBinary": {
"type": "executable",
"version": "4.0.1",
"version": "4.0.2",
"variants": [
{
"path": "prefire-4.0.1-macos/bin/prefire",
"path": "prefire-4.0.2-macos/bin/prefire",
"supportedTriples": ["x86_64-apple-macosx", "arm64-apple-macosx"]
},
]
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension Prefire {
struct Version: ParsableCommand {
static let configuration = CommandConfiguration(abstract: "Display the current version of Prefire")

static let value: String = "4.0.1"
static let value: String = "4.0.2"

func run() throws {
print(Self.value)
Expand Down

0 comments on commit 29d45cf

Please sign in to comment.