Skip to content

Commit 8d972e8

Browse files
committed
netlify-deploy change dependency to nwtgck/[email protected]
setup node ourselves
1 parent e9f7663 commit 8d972e8

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

.github/workflows/site-deploy.yaml

+25-14
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: site-deploy
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- "main"
77

88
permissions:
9-
contents: read # to fetch code (actions/checkout)
9+
contents: read # to fetch code (actions/checkout)
1010

1111
jobs:
1212
build:
@@ -15,15 +15,26 @@ jobs:
1515
environment: netlify
1616
container: golang:latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- name: Get dependencies
20-
run: go get -v -t -d ./...
21-
- name: Make awesome-go.com
22-
run: go run .
23-
- name: deploy awesome-go.com
24-
uses: jsmrcaga/[email protected]
25-
with:
26-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
27-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
28-
NETLIFY_DEPLOY_TO_PROD: true
29-
build_directory: out
18+
- uses: actions/checkout@v4
19+
- name: Get dependencies
20+
run: go get -v -t -d ./...
21+
- name: Make awesome-go.com
22+
run: go run .
23+
- name: Setup node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
- name: deploy awesome-go.com
28+
uses: nwtgck/[email protected]
29+
with:
30+
publish-dir: "./out"
31+
production-branch: main
32+
production-deploy: true
33+
enable-pull-request-comment: false
34+
enable-commit-comment: false
35+
enable-commit-status: false
36+
overwrites-pull-request-comment: false
37+
env:
38+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
39+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
40+
timeout-minutes: 1

0 commit comments

Comments
 (0)