chore(deps): update all non-major dependencies for npm #1237
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
name: Generate pages | |
on: [ push, pull_request ] | |
jobs: | |
deploy: | |
name: Generate pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Build pages | |
run: yarn build | |
- name: Generate pages | |
run: yarn generate | |
- name: Upload artifacts | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
continue-on-error: true | |
with: | |
name: homepage-build-${{ github.run_number }} | |
path: ./.output/public | |
- name: Deploy to GitHub Pages | |
if: ${{ github.repository == 'Siroshun09/homepage' && github.ref == 'refs/heads/master' }} | |
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | |
with: | |
external_repository: Siroshun09/siroshun09.github.io | |
personal_token: ${{ secrets.TOKEN_FOR_DEPLOYING_TO_GH_PAGES }} | |
publish_dir: ./.output/public | |
allow_empty_commit: true |