2021-12-22 13:39:23 +00:00
|
|
|
name: site-deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
|
2022-10-31 01:17:17 +00:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2021-12-22 13:39:23 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Make and Deploy site
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: netlify
|
|
|
|
container: golang:latest
|
|
|
|
steps:
|
2024-08-04 15:49:12 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-22 13:39:23 +00:00
|
|
|
- name: Get dependencies
|
|
|
|
run: go get -v -t -d ./...
|
|
|
|
- name: Make awesome-go.com
|
2023-03-26 19:53:35 +00:00
|
|
|
run: go run .
|
2021-12-22 13:39:23 +00:00
|
|
|
- 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
|
2023-03-26 20:09:20 +00:00
|
|
|
build_directory: out
|