-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (33 loc) · 961 Bytes
/
bundle.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
name: build bundle ⚙️
on:
push:
branches:
- main
paths:
- 'topic-hierarchy/**.csv'
- 'scripts/generate-bundle.py'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements 📦
run: |
- name: Create resources bundle 📦
run: |
python3 scripts/generate-bundle.py
zip -j /tmp/wth-bundle.zip topic-hierarchy/*.csv
- uses: actions/checkout@master
with:
ref: gh-pages
- name: update gh-pages branch and publish
run: |
mv /tmp/wth-bundle.zip .
git config --global user.email "[email protected]"
git config --global user.name "Tom Kralidis"
git commit -m "generate bundle" wth-bundle.zip
git push -f origin gh-pages