-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.23 KB
/
main.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
name: Create Archive
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: 'dev.zip'
exclusions: '*.git* README.md *.schema* *.zip'
- name: Delete dev files
run: rm assets/minecraft/textures/particle/effect_*
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: 'patreon.zip'
exclusions: '*.git* README.md *.schema* *.zip *.py'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run script
run: python .github/scripts/process_input.py
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: '20.zip'
exclusions: '*.git* README.md *.schema* *.zip *.py'
- name: Delete
uses: ame-yu/action-delete-latest-release@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: "patreon.zip,dev.zip,20.zip"
tag: "patreon"
token: ${{ secrets.GITHUB_TOKEN }}