quartz/.github/workflows/deploy.yaml
2022-04-12 14:52:45 -04:00

38 lines
828 B
YAML

name: Deploy to Netlify
on:
push:
branches:
- hugo
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build Link Index
uses: jackyzha0/hugo-obsidian@v2.12
with:
index: true
input: content
output: assets/indices
root: .
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.96.0'
extended: true
- name: Build
run: hugo --minify
- name: Deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v1.1.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: b965a46d-409a-4ec4-b009-530da70d86be
NETLIFY_DEPLOY_TO_PROD: true
build_directory: 'public'