Skip to content

Merge branch 'main' of https://github.com/gaoxh/myWebSite #6

Merge branch 'main' of https://github.com/gaoxh/myWebSite

Merge branch 'main' of https://github.com/gaoxh/myWebSite #6

Workflow file for this run

name: Deploy pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
deploy-site-page:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo -b https://gaoxh.github.io/ -d ./output
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: publish
destination_dir: ./output
keep_files: true