Skip to content

Merge pull request #119 from findy-network/autoupdate-gh-actions #39

Merge pull request #119 from findy-network/autoupdate-gh-actions

Merge pull request #119 from findy-network/autoupdate-gh-actions #39

Workflow file for this run

name: release
on:
push:
tags:
- "*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.111.3"
extended: true
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: install deps
run: npm ci
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
merge:
needs: deploy
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: master
- name: merge
run: |
git fetch --tags origin
git merge $GITHUB_REF
git push origin master