Skip to content

Bump to GMT 6.5.0 (#419) #169

Bump to GMT 6.5.0 (#419)

Bump to GMT 6.5.0 (#419) #169

Workflow file for this run

#
# Build and deploy the website
#
name: Deploy
on:
# pull_request: # enable pull_request for testing
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: Checkout
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: 0.97.3
extended: true
- name: Build the website
run: make build
- name: Deploy the website
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
github_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'