-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (55 loc) · 1.99 KB
/
release.yml
File metadata and controls
59 lines (55 loc) · 1.99 KB
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
name: Zip and Release
on:
push:
tags:
- 'v*.*.*'
jobs:
zip:
runs-on: ubuntu-latest
if: ${{ !contains(github.ref, 'pre') }}
steps:
- uses: actions/checkout@v3
- name: Archive Release1
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
directory: 'development_behavior_packs/NiaServer-Core-BP'
path: '.'
filename: NiaServer-Core-BP-${{ github.ref_name }}.zip
- name: Upload the zip file1
uses: actions/upload-artifact@v4
with:
name: NiaServer-Core-BP-${{ github.ref_name }}.zip
path: ./development_behavior_packs/NiaServer-Core-BP/NiaServer-Core-BP-${{ github.ref_name }}.zip
- name: Archive Release2
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
directory: 'development_resource_packs/NiaServer-Core-RP'
path: '.'
filename: NiaServer-Core-RP-${{ github.ref_name }}.zip
- name: Upload the zip file2
uses: actions/upload-artifact@v4
with:
name: NiaServer-Core-RP-${{ github.ref_name }}.zip
path: ./development_resource_packs/NiaServer-Core-RP/NiaServer-Core-RP-${{ github.ref_name }}.zip
release:
needs: [zip]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download the behavior_pack
uses: actions/download-artifact@v4
with:
name: NiaServer-Core-BP-${{ github.ref_name }}.zip
- name: Download the resource_pack
uses: actions/download-artifact@v4
with:
name: NiaServer-Core-RP-${{ github.ref_name }}.zip
- name: Create and upload release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "NiaServer-Core-BP-${{ github.ref_name }}.zip,NiaServer-Core-RP-${{ github.ref_name }}.zip,world_behavior_packs.json,world_resource_packs.json"
bodyFile: "CHANGELOG.md"
generateReleaseNotes: false
token: ${{ secrets.GITHUB_TOKEN }}