35 lines
853 B
YAML
35 lines
853 B
YAML
name: Deployment
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: Install Hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: "0.79.0"
|
|
|
|
- name: Build
|
|
run: cd website && hugo --gc --minify --themesDir .
|
|
|
|
- name: Deploy website to the branch
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
personal_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./website/public
|
|
#external_repository: gurusabarish/hugo-profile-demo
|
|
publish_branch: demo
|
|
user_name: hugo-profile bot
|
|
user_email: githubactionsbot@users.noreply.github.com
|