-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.48 KB
/
deploy.yml
File metadata and controls
54 lines (46 loc) · 1.48 KB
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
44
45
46
47
48
49
50
51
52
53
54
name: Deploy Website
on:
workflow_dispatch:
push:
branches:
- development
jobs:
deploy_site:
name: Deploy Website
runs-on: ubuntu-latest
env:
TZ: Asia/Tokyo
GH_READONLY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_USER_NAME: AndroidDagashi
PROJECT_REPO_NAME: androiddagashi.github.io
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: development
persist-credentials: false
# run corepack before setup mise
# https://github.com/actions/setup-node/issues/899
- run: corepack enable yarn
- name: Setup mise
uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
- name: install dependencies
run: |
node --version
corepack enable yarn
yarn install
- name: Generate website
run: yarn workspace site exec nuxi build --preset github_pages
- name: Deploy website
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
personal_token: ${{ secrets.PUSH_ACCESS_TOKEN }}
publish_dir: ./packages/site/.output/public
publish_branch: master
force_orphan: true
user_name: 'AndroidDagashi store staff'
user_email: 'androiddagashi-bot@users.noreply.github.com'
- name: Print debug info
if: failure()
run: |
git remote
git status