mirror of
https://github.com/avelino/awesome-go.git
synced 2025-04-14 17:32:57 -04:00
netlify-deploy change dependency to nwtgck/actions-netlify@v3.0
setup node ourselves
This commit is contained in:
parent
e9f7663e66
commit
8d972e873e
1 changed files with 25 additions and 14 deletions
39
.github/workflows/site-deploy.yaml
vendored
39
.github/workflows/site-deploy.yaml
vendored
|
@ -3,10 +3,10 @@ name: site-deploy
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- "main"
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -15,15 +15,26 @@ jobs:
|
|||
environment: netlify
|
||||
container: golang:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Get dependencies
|
||||
run: go get -v -t -d ./...
|
||||
- name: Make awesome-go.com
|
||||
run: go run .
|
||||
- name: deploy awesome-go.com
|
||||
uses: jsmrcaga/action-netlify-deploy@v1.1.0
|
||||
with:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
NETLIFY_DEPLOY_TO_PROD: true
|
||||
build_directory: out
|
||||
- uses: actions/checkout@v4
|
||||
- name: Get dependencies
|
||||
run: go get -v -t -d ./...
|
||||
- name: Make awesome-go.com
|
||||
run: go run .
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: deploy awesome-go.com
|
||||
uses: nwtgck/actions-netlify@v3.0
|
||||
with:
|
||||
publish-dir: "./out"
|
||||
production-branch: main
|
||||
production-deploy: true
|
||||
enable-pull-request-comment: false
|
||||
enable-commit-comment: false
|
||||
enable-commit-status: false
|
||||
overwrites-pull-request-comment: false
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
timeout-minutes: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue