Created
March 23, 2020 15:01
-
-
Save juntao/67c6a61ec44ee7ee595b71f222f6424a to your computer and use it in GitHub Desktop.
The .github/workflows/main.yml file for Arenztopia.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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