mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-20 11:16:22 -05:00
29 lines
693 B
YAML
29 lines
693 B
YAML
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: 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
|