-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (46 loc) · 1.33 KB
/
master.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
name: 🌟 Master
on:
pull_request:
branches: [master]
jobs:
gdscript:
name: 💅 Linting / 🤖 GDScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip3 install "gdtoolkit==4.*"
- run: bash -c 'for f in ./demo/addons/sprite_mesh/**/*.gd; do gdlint "$f"; done'
- run: bash -c 'for f in ./demo/addons/sprite_mesh/*.gd; do gdlint "$f"; done'
- run: bash -c 'for f in ./demo/**/*.gd; do gdlint "$f"; done'
spelling:
name: 💅 Linting / 👓 Spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v1
markdown:
name: 💅 Linting / 📝 Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: README.md
package:
name: 📦 Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create addon
run: |
mkdir addons
cp -R demo/addons/sprite_mesh addons
cp LICENSE.md addons/sprite_mesh
- name: Create package
run: |
zip -r sprite_mesh.zip addons
- name: Upload addon
uses: actions/upload-artifact@v3
with:
name: sprite_mesh
path: sprite_mesh.zip