mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 05:14:06 -06:00
38 lines
833 B
YAML
38 lines
833 B
YAML
name: Deploy to GitHub Pages
|
|
|
|
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: 9e65bb31-a460-4a21-aeba-5e7f210eb925
|
|
NETLIFY_DEPLOY_TO_PROD: true
|
|
build_directory: 'public'
|