-
Notifications
You must be signed in to change notification settings - Fork 157
75 lines (65 loc) · 1.86 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: build
on:
workflow_dispatch:
push:
branches:
- master
schedule:
# UTC 表記
# 日本時間 23:30
- cron: "30 14 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Register SSH key
env:
CPPREFJP_GITHUB_IO_SECRETS: ${{ secrets.CPPREFJP_GITHUB_IO_SECRETS }}
run: |
mkdir -p $HOME/.ssh
echo "$CPPREFJP_GITHUB_IO_SECRETS" > $HOME/.ssh/id_ed25519
chmod 600 $HOME/.ssh/id_ed25519
# site_generator
- uses: actions/checkout@v4
with:
repository: cpprefjp/site_generator
path: site_generator
- run: git submodule update -i
working-directory: site_generator
# kunai
- uses: actions/checkout@v4
with:
repository: cpprefjp/kunai
path: site_generator/kunai
- run: git submodule update -i
working-directory: site_generator/kunai
# cpprefjp.github.io
- uses: actions/checkout@v4
with:
repository: cpprefjp/cpprefjp.github.io
path: site_generator/cpprefjp/cpprefjp.github.io
# site
- uses: actions/checkout@v4
with:
repository: cpprefjp/site
path: site_generator/cpprefjp/site
# atom 生成のために全履歴が必要
fetch-depth: 0
- run: git submodule update -i
working-directory: site_generator/cpprefjp/site
# site
- uses: actions/checkout@v2
with:
repository: cpprefjp/image
path: site_generator/cpprefjp/image
- name: Set up Python 3.x
uses: actions/setup-python@v5
with:
python-version: 3.11
# 3.12でUndefined symbolエラーがでた
# あとはスクリプトで頑張る
- run: ./cpprefjp/site/.github/workflows/script/build.sh
working-directory: site_generator
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true