awesome-go/.github/workflows/site-deploy.yaml

27 lines
648 B
YAML
Raw Normal View History

name: site-deploy
on:
push:
branches:
- 'main'
jobs:
build:
name: Make and Deploy site
runs-on: ubuntu-latest
environment: netlify
container: golang:latest
steps:
2022-10-17 07:07:57 +00:00
- uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Make awesome-go.com
run: go run make_site.go scripts.go
- 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: tmpl