-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.13 KB
/
unitypackage.yml
File metadata and controls
42 lines (34 loc) · 1.13 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
name: unitypackage
on:
workflow_dispatch:
push:
tags: [ v* ]
jobs:
unitypackage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: benjlevesque/short-sha@v2.1
id: short-sha
with:
length: 6
- uses: actions/checkout@v3
with:
repository: Lachee/Unity-Package-Exporter
path: upe
- uses: actions/setup-dotnet@v3
- run: |
dotnet publish -c Release -o ./upe "./upe/UnityPackageExporter"
dotnet ./upe/UnityPackageExporter.dll --project ./ \
--output VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage \
--assets Assets/Plugins/VolumeButtonsPlugin
- uses: actions/upload-artifact@v3
with:
path: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
name: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: VolumeButtonsPlugin-${{ steps.short-sha.outputs.sha }}.unitypackage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}