Skip to content

Commit d6370a2

Browse files
authored
Merge pull request #8 from alan-turing-institute/5-fix-ci-release-workflow
Update GitHub workflow settings
2 parents 567b584 + 025364a commit d6370a2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
---
12
name: Build release binaries
23
on:
34
release:
45
types: [created]
56

7+
# github-action-publish-binaries needs 'contents:write'
8+
permissions:
9+
contents: write
10+
611
jobs:
712
releases-matrix:
813
name: Create release-artifacts
@@ -21,11 +26,16 @@ jobs:
2126
with:
2227
go-version: '^1.18'
2328

29+
- name: Install dependencies
30+
run: sudo apt-get install -y libpam-dev
31+
2432
- name: Generate the artifacts
25-
run: make
33+
run: |
34+
make
35+
mv pam_aad_oidc.so pam_aad_oidc.${{ matrix.goarch }}.so
2636
2737
- name: Upload the artifacts
28-
uses: skx/github-action-publish-binaries@v2
38+
uses: skx/github-action-publish-binaries@master
2939
env:
3040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3141
with:

0 commit comments

Comments
 (0)