generated from acidbubbles/vam-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (31 loc) · 1.01 KB
/
package.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
name: PackageVar
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Zip the release package
id: zip
run: |
mkdir -p publish/Custom/Scripts/AcidBubbles/ColliderEditor
cp -r src publish/Custom/Scripts/AcidBubbles/ColliderEditor/
cp *.cslist publish/Custom/Scripts/AcidBubbles/ColliderEditor/
cp meta.json publish/
sed -i 's/v0.0.0/${{ steps.get_version.outputs.VERSION }}/' publish/meta.json
cd publish
zip -r "AcidBubbles.ColliderEditor.${{ github.run_number }}.var" *
- name: GitHub release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: publish/AcidBubbles.ColliderEditor.${{ github.run_number }}.var
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}