bpcreech is publishing stuff #29
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: publish | |
run-name: ${{ github.actor }} is publishing stuff | |
on: push | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Retrieve theme | |
run: git submodule update --init --recursive | |
- name: Setup hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "0.92.2" | |
- name: Build | |
run: hugo --minify | |
- name: Set up CNAME | |
run: | | |
echo bpcreech.com > ./public/CNAME | |
echo "This site is generated from github.com/bpcreech/blog" > ./public/README | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.TOKEN }} | |
external_repository: bpcreech/bpcreech.github.io | |
publish_dir: ./public | |
# keep_files: true | |
user_name: bpcreech | |
user_email: [email protected] | |
publish_branch: master | |
# cname: example.com |