Skip to content

Commit 15fd1a5

Browse files
authored
add(.github): publish to homebrew and winget (#9)
* add(.github): publish to homebrew and winget
1 parent 97c535f commit 15fd1a5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build-access.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'v*'
99

1010
jobs:
11-
access:
11+
build:
1212
runs-on: ubuntu-latest
1313
env:
1414
flags: ""
@@ -27,3 +27,19 @@ jobs:
2727
args: release --clean ${{ env.flags }}
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
publish:
31+
runs-on: ubuntu-latest
32+
needs: build
33+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
34+
steps:
35+
- uses: mislav/bump-homebrew-formula-action@v2
36+
with:
37+
formula-name: access
38+
env:
39+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
40+
- uses: vedantmgoyal2009/winget-releaser@v2
41+
with:
42+
identifier: Indent.Access
43+
max-versions-to-keep: 5
44+
installers-regex: 'windows_[a-z0-9]+\.zip$'
45+
token: ${{ secrets.WINGET_TOKEN }}

0 commit comments

Comments
 (0)