File tree Expand file tree Collapse file tree 1 file changed +40
-26
lines changed
Expand file tree Collapse file tree 1 file changed +40
-26
lines changed Original file line number Diff line number Diff line change 11---
2- name : publish-release
3- on :
4- push :
5- tags : ['v*']
6- jobs :
7- build :
8- runs-on : ubuntu-22.04
9- permissions :
10- contents : write
11- steps :
12- - uses : actions/checkout@v4
13- - uses : actions/cache@v4
14- with :
15- path : ~/.npm
16- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
17- restore-keys : |
18- ${{ runner.os }}-node-
19- - run : npm install
20- - run : gulp bundle
21- - run : |
22- gh release create \
23- "${{ github.ref_name }}" ./build/ui-bundle.zip --generate-notes
24- env:
25- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26- - name : Trigger Netlify Build Hook
27- run : curl -X POST -d {} https://api.netlify.com/build_hooks/64e4682992f9ec30865c7c0b
2+ name : publish-release
3+
4+ on :
5+ push :
6+ tags : ['v*']
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-22.04
11+ permissions :
12+ contents : write
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - uses : actions/cache@v4
18+ with :
19+ path : ~/.npm
20+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21+ restore-keys : |
22+ ${{ runner.os }}-node-
23+
24+ - run : npm install
25+
26+ - run : gulp bundle
27+
28+ - name : Create GitHub Release (prerelease aware)
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ run : |
32+ TAG="${{ github.ref_name }}"
33+ ASSET=./build/ui-bundle.zip
34+ FLAGS="--generate-notes"
35+ if [[ "$TAG" == *-* ]]; then
36+ FLAGS="$FLAGS --prerelease"
37+ fi
38+ gh release create "$TAG" $ASSET $FLAGS
39+
40+ - name : Trigger Netlify Build Hook
41+ run : curl -X POST -d '{}' https://api.netlify.com/build_hooks/64e4682992f9ec30865c7c0b
You can’t perform that action at this time.
0 commit comments