Skip to content

Instantly share code, notes, and snippets.

@juntao
Created March 23, 2020 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juntao/67c6a61ec44ee7ee595b71f222f6424a to your computer and use it in GitHub Desktop.
Save juntao/67c6a61ec44ee7ee595b71f222f6424a to your computer and use it in GitHub Desktop.
The .github/workflows/main.yml file for Arenztopia.com
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1 # v2 does not have submodules option now
# with:
# submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.62.2'
extended: true
- name: Build
run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: www.arenztopia.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment