Skip to content

Commit 45bd1e7

Browse files
committed
fix: needs post
1 parent 083fe2a commit 45bd1e7

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ on:
66
tags:
77
- "*"
88

9+
permissions:
10+
contents: write
11+
912
jobs:
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
@@ -25,7 +30,7 @@ jobs:
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
@@ -46,8 +51,9 @@ jobs:
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 }}

0 commit comments

Comments
 (0)