-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.1 KB
/
generate_data.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
name: Generate Assets
on:
workflow_dispatch:
push:
branches:
- '*'
- '!main'
paths:
- generators/**
- '!generators/lang/**'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install requirements
run: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install wget numpy opencv-python
- name: Generate
run: |
python3 generators/token/generate.py
python3 generators/makeAmaziaDescription.py
python3 generators/generateRecipies.py
python3 generators/particles/generate.py
python3 generators/worldgen/generate.py
- name: Commit to the repo
run: |
git config --global user.name "JulianWww/generator"
git config --global user.email "generator[bot]@JulianWww.github.io"
git pull
git add .
# Force the build to succeed, even if no files were changed
git commit -m 'auto generated data' || true
git push