Skip to content

build(deps): bump peaceiris/actions-gh-pages from 3.9.3 to 4.0.0 (#301) #250

build(deps): bump peaceiris/actions-gh-pages from 3.9.3 to 4.0.0 (#301)

build(deps): bump peaceiris/actions-gh-pages from 3.9.3 to 4.0.0 (#301) #250

Workflow file for this run

#
# Build and deploy the documentation
#
name: Deploy
# Run on main branch only
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: 0.111.3
extended: true
- name: Build the website
run: make all
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
# personal token is needed here because it's pushing to an external repository.
# personal token can be generated at https://github.com/settings/tokens,
# and added to https://github.com/organizations/seismo-learn/settings/secrets/actions
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
# Only keep the latest commit to avoid bloating the repository
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'