Skip to content

Commit 5936ae7

Browse files
authored
Release action might work in theory now
need to use a separate step to modify the tag ref value
1 parent eb9f4e0 commit 5936ae7

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77

88
jobs:
99
release:
10-
10+
name: Publish Release
1111
runs-on: ubuntu-latest
12-
1312
steps:
13+
- name: Get version slug
14+
id: get_version
15+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1416
- name: Checkout
1517
uses: actions/checkout@v1
1618
- name: Package
@@ -22,15 +24,12 @@ jobs:
2224
files: archive-fusionvm.tar.gz
2325
env:
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
homebrew:
26-
name: Bump Homebrew formula
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: mislav/[email protected]
30-
#if: "!contains(github.ref, '-')" # skip prereleases
31-
with:
32-
formula-name: archive-fusionvm
33-
homebrew-tap: nreilingh/nreilingh
34-
download-url: https://github.com/NReilingh/archive-fusionvm/releases/download/${{ github.ref }}/archive-fusionvm.tar.gz
35-
env:
36-
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
27+
- name: Bump Homebrew formula
28+
uses: mislav/[email protected]
29+
#if: "!contains(github.ref, '-')" # skip prereleases
30+
with:
31+
formula-name: archive-fusionvm
32+
homebrew-tap: nreilingh/nreilingh
33+
download-url: https://github.com/NReilingh/archive-fusionvm/releases/download/${{ steps.get_version.outputs.VERSION }}/archive-fusionvm.tar.gz
34+
env:
35+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 commit comments

Comments
 (0)