-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.08 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
name: Fetch Res
on:
workflow_dispatch: ~
jobs:
Fetch-Wiki:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/setup-node@v4
with:
node-version: '18.19.0'
- name: Install Dependencies
run: |
python -m pip install httpx black
- name: Fetch Remote Files
run: |
cd compiler
python main.py
cd hsr-optimizer-api
npm install -g pnpm
pnpm install
npm run build
cd ../..
black .
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit changes
run: |
git add .
git commit -S -m ":bento: Update res"
git push