forked from avelino/awesome-go
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.02 KB
/
site-deploy.yaml
File metadata and controls
40 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: site-deploy
on:
push:
branches:
- "main"
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
name: Make and Deploy site
runs-on: ubuntu-latest
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: 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