forked from TheRenegadeCoder/sample-programs
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.02 KB
/
deploy.yml
File metadata and controls
46 lines (38 loc) · 1.02 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
name: Jisho
on:
push:
branches: [ main ]
jobs:
wiki:
name: "Wiki Generation"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
path: main
submodules: recursive
- name: Checkout wiki
uses: actions/checkout@v2
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f main/requirements.txt ]; then pip install -r main/requirements.txt; fi
- name: Generate wiki
run: jisho main/archive --log=DEBUG
- name: Commit wiki
continue-on-error: true
working-directory: ./wiki
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update wiki"
git push