-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (42 loc) · 1.5 KB
/
publish-production.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish production
on:
push:
branches:
- master
jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
with:
version-suffix: ""
publish-nuget:
uses: ./.github/workflows/publish-nuget-packages.yml
if: github.repository_owner == 'dequelabs' # don't attempt to publish from forks
needs: ["build-and-test"]
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
publish-github-release:
if: github.repository_owner == 'dequelabs' # don't attempt to publish from forks
needs: ["publish-nuget"]
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
contents: write # this permission controls release creation
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '^1.19.0'
- name: Install github-release tool
run: go install gopkg.in/aktau/github-release.v0@v0.10.0
- name: Download and run GitHub release script
run: |
curl https://raw.githubusercontent.com/dequelabs/attest-release-scripts/develop/src/node-github-release.sh -s -o ./node-github-release.sh
chmod +x ./node-github-release.sh
./node-github-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CIRCLE_PROJECT_USERNAME: ${{ github.repository_owner }}
CIRCLE_PROJECT_REPONAME: ${{ github.event.repository.name }}
GITHUB_RELEASE_TARGET: master