Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abertschi committed Apr 9, 2024
1 parent 288c9e8 commit de48008
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build-and-commit-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
on:
push:
branches:
branches:
- master

workflow_dispatch:

concurrency:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

name: build-website
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: '18.x'

- name: Build webapp
run: |
make init
rm -rf ./hugo/public/
mkdir ./hugo/public
make build
- name: commit to github pages
uses: peaceiris/actions-gh-pages@v4
# If you're changing the branch from main,
# also change the `master` in `refs/heads/master`
# below accordingly.
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.AHOI_GITHUB_SSH_KEY }}
publish_dir: ./hugo/public/
force_orphan: true

0 comments on commit de48008

Please sign in to comment.