-
Notifications
You must be signed in to change notification settings - Fork 91
74 lines (60 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Update resource_list.json & Wiki
on:
push:
branches:
- "main"
paths:
- "meme_generator/memes/**"
workflow_dispatch:
permissions:
contents: write
jobs:
update-resource-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Update resource_list.json
run: python tools/update_resource_list.py
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "Update resource_list.json"
branch: "main"
update-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout wiki repo
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.wiki
path: wiki
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup Poetry
uses: Gr1N/setup-poetry@v9
- name: Install dependencies
run: poetry install
- name: Install fonts
run: |
sudo apt install fonts-noto-color-emoji libgl1-mesa-glx libgl1-mesa-dri
sudo mkdir /usr/share/fonts/myfonts
sudo cp resources/fonts/* /usr/share/fonts/myfonts/
fc-cache -fv
- name: Update memes.md
run: poetry run python wiki/update_meme_list.py
- name: Commit & Push changes
uses: actions-js/push@master
with:
directory: "wiki"
repository: ${{ github.repository }}.wiki
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "update meme list"
branch: "master"