-
Notifications
You must be signed in to change notification settings - Fork 52
59 lines (51 loc) · 1.88 KB
/
update.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
name: Update UniStore and pages
on:
push:
branches: [ master ]
paths: [
generate.py,
bannergif.py,
"_nds/TWiLightMenu/*menu/themes/**",
"_nds/TWiLightMenu/unlaunch/backgrounds/**",
"_nds/TWiLightMenu/unlaunch/extras/fonts/**",
"_nds/TWiLightMenu/icons/**",
.github/workflows/update.yml
]
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install python3-dev python3-setuptools -y
sudo apt-get install libtiff5-dev libjpeg62-turbo-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
libharfbuzz-dev libfribidi-dev libxcb1-dev -y
sudo apt-get install python3-pip -y
pip3 install -r requirements.txt
- name: Workaround Git issue by chowning the repo
run: |
# when will github fix this
chown -R $(id -u):$(id -g) $PWD
- name: Delete old pages
run: rm -rf docs/_nintendo-3ds/* docs/_nintendo-dsi/* docs/_r4-original/* docs/_wood-ui/* docs/_unlaunch/* docs/_font/* docs/_icon/* docs/nintendo-3ds/category/* docs/nintendo-dsi/category/* docs/r4-original/category/* docs/wood-ui/category/* docs/unlaunch/category/* docs/font/category/* docs/icon/category/*
- name: Run generate.py
run: |
export PATH=$PATH:/opt/devkitpro/tools/bin
python3 generate.py ${{ secrets.GITHUB_TOKEN }}
- name: Push changes
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
commit-message: 'Update UniStore and pages'
force-add: 'false'
files: '*'
name: TWLBot
email: flamekat54@aol.com