add workflow to deploy to pages
This commit is contained in:
parent
9cd24a96c4
commit
af4ec794c2
1 changed files with 27 additions and 0 deletions
27
.github/workflows/deploy-to-pages.yml
vendored
Normal file
27
.github/workflows/deploy-to-pages.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
with:
|
||||||
|
hugo-version: '0.102.3'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: hugo --minify
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: actions/github-pages@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
directory: public
|
Loading…
Add table
Add a link
Reference in a new issue