Skip to content

Commit 5759e28

Browse files
committed
Add unitypackage CI
1 parent 02c89d8 commit 5759e28

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/unitypackage.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: unitypackage
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags: [ v* ]
7+
8+
jobs:
9+
echo:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- run: |
15+
echo "Assets/Plugins.meta" > Plugin.metaList
16+
find Assets/Plugins -name \*.meta >> Plugin.metaList
17+
18+
- uses: benjlevesque/[email protected]
19+
id: short-sha
20+
with:
21+
length: 6
22+
23+
- uses: pCYSl5EDgo/create-unitypackage@master
24+
with:
25+
package-path: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
26+
include-files: Plugin.metaList
27+
28+
- uses: actions/upload-artifact@v2
29+
with:
30+
path: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
31+
name: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
32+
33+
- uses: softprops/action-gh-release@v1
34+
if: startsWith(github.ref, 'refs/tags/')
35+
with:
36+
files: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)