-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.12 KB
/
generate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Generate pages
on: [ push, pull_request ]
jobs:
deploy:
name: Generate pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
- run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4.0.3
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@v4.3.6
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@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