Bump lycheeverse/lychee-action from 1.8.0 to 1.9.0 (#402) #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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' |