mirror of
https://github.com/mollyim/mollyim.github.io.git
synced 2025-05-17 23:47:55 +01:00
Update gh-pages.yml
This commit is contained in:
parent
f6fd50464f
commit
a33f6bd4c7
1 changed files with 23 additions and 16 deletions
39
.github/workflows/gh-pages.yml
vendored
39
.github/workflows/gh-pages.yml
vendored
|
@ -1,25 +1,32 @@
|
||||||
name: Build and Deploy
|
name: Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
deploy:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout master
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v1
|
with:
|
||||||
with:
|
submodules: true
|
||||||
submodules: true
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Hugo Deploy GitHub Pages
|
- name: Test Hugo
|
||||||
uses: benmatselby/hugo-deploy-gh-pages@master
|
uses: peaceiris/actions-hugo@v2
|
||||||
env:
|
with:
|
||||||
HUGO_VERSION: 0.68.3
|
hugo-version: 'latest'
|
||||||
TARGET_REPO: benarmstead/mollyim.github.io
|
extended: true
|
||||||
TOKEN: ${{ secrets.TOKEN }}
|
|
||||||
TARGET_BRANCH: master
|
- name: Build
|
||||||
|
run: hugo --minify
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./public
|
||||||
|
|
Loading…
Reference in a new issue