File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 tags :
77 - " *"
88
9+ permissions :
10+ contents : write
11+
912jobs :
1013 goreleaser :
1114 runs-on : ubuntu-latest
1215 steps :
1316 - name : checkout
1417 uses : actions/checkout@v6
18+ with :
19+ fetch-depth : 0
1520
1621 - name : go-setup
1722 uses : actions/setup-go@v6
2530 uses : cachix/install-nix-action@v31
2631
2732 - name : goreleaser-setup
28- uses : goreleaser/goreleaser-action@v6
33+ uses : goreleaser/goreleaser-action@v7
2934 with :
3035 distribution : goreleaser
3136 version : latest
4651 - if : startsWith(github.ref, 'refs/tags/')
4752 name : trigger Netlify deploy with new release
4853 run : |
49- curl -vs -X POST "https://api.netlify.com/build_hooks/${NETLIFY_HOOK}" \
54+ curl -vs "https://api.netlify.com/build_hooks/${NETLIFY_HOOK}" \
5055 --data-urlencode "trigger_title=triggered+by github actions (tag: ${GITHUB_REF#refs/tags/})" \
51- --data-urlencode "trigger_branch=main"
56+ --data-urlencode "trigger_branch=main" \
57+ -d '{}'
5258 env :
53- NETLIFY_HOOK : ${{ secrets .NETLIFY_HOOK }}
59+ NETLIFY_HOOK : ${{ vars .NETLIFY_HOOK }}
You can’t perform that action at this time.
0 commit comments