-
-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (40 loc) · 928 Bytes
/
pack.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
name: Preview Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'bedrock/**'
- 'java/**'
jobs:
assemble:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Zip directories
run: |
mkdir dist
cp -r java dist
cp -r bedrock/pack dist
cp -r bedrock/addon dist
cp -r bedrock/variety dist
cd dist/java
zip -0 -r ../PBR-JG.zip .
cd ../pack
zip -0 -r ../JG-RTX.mcpack .
cd ../addon
zip -0 -r ../JG-RTX.mcaddon .
cd ../variety
zip -0 -r ../JG-RTX_GlassVariety.mcpack ./glass
- name: Upload Bedrock packs
uses: actions/upload-artifact@v2
with:
name: JG-RTX
path: dist/*.mc*
- name: Upload Java pack
uses: actions/upload-artifact@v2
with:
name: PBR-JG
path: dist/*.zip