Skip to content

ci: update actions/checkout to 4.1.0 #858

ci: update actions/checkout to 4.1.0

ci: update actions/checkout to 4.1.0 #858

Workflow file for this run

name: Generate pages
on: [ push, pull_request ]
jobs:
deploy:
name: Generate pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
- name: Setup Node.js
uses: actions/setup-node@v3.8.1
with:
node-version: '18'
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@v3.1.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@v3.9.3
with:
external_repository: Siroshun09/siroshun09.github.io
personal_token: ${{ secrets.TOKEN_FOR_DEPLOYING_TO_GH_PAGES }}
publish_dir: ./.output/public
allow_empty_commit: true