Skip to content

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#392) #161

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#392)

Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#392) #161

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/[email protected]
- name: Checkout
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/[email protected]
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'