-
Notifications
You must be signed in to change notification settings - Fork 15
82 lines (69 loc) · 2.08 KB
/
build.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
75
76
77
78
79
80
81
82
name: build
on:
push:
branches: source
pull_request:
branches: source
repository_dispatch:
types:
- run_build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: checkout name fetcher
uses: actions/checkout@v3
with:
repository: MCResourcePile/name-fetcher
path: "./scripts/name-fetcher"
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.11.1'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r ./scripts/name-fetcher/requirements.txt
- name: execute py script
run: |
python ./scripts/name-fetcher/run.py ./src/data ./src/data/uuids.json
- name: remove temp files
run: |
rm -r ./scripts
- name: commit changes
if: github.event_name != 'pull_request'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update global UUID data file
branch: source
file_pattern: src/data/*.json
commit_user_name: MCResourcePile
commit_user_email: [email protected]
commit_author: MCResourcePile <[email protected]>
- name: setup node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: install ruby dependencies
run: |
npm install
gem install sass
- name: build static pages
run: grunt
- name: deploy to github pages
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: source
BRANCH: master
FOLDER: out
CLEAN: true
GIT_CONFIG_EMAIL: [email protected]
COMMIT_MESSAGE: Deploy to GitHub Pages - ${{ github.sha }}