Skip to content

Bump peaceiris/actions-hugo from 2.6.0 to 3.0.0 (#187) #78

Bump peaceiris/actions-hugo from 2.6.0 to 3.0.0 (#187)

Bump peaceiris/actions-hugo from 2.6.0 to 3.0.0 (#187) #78

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/[email protected]
with:
hugo-version: 0.98.0
extended: true
- name: Build the website
run: make all
- name: Deploy to seismo-learn.github.io
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
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.TOKEN_DOCUMENT_DEPLOY }}
external_repository: seismo-learn/seismo-learn.github.io
publish_branch: main
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'