This commit is contained in:
gurusabarish
2022-03-24 18:42:53 +05:30
parent 47bde42590
commit 708d0a0022
9 changed files with 109 additions and 108 deletions
-36
View File
@@ -1,36 +0,0 @@
name: Deployment
on:
push:
branches:
- master
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: [email protected]