-
-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (44 loc) · 1.24 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
workflow_dispatch:
push:
branches:
- master
jobs:
Release:
env:
TARGET_NAME: SimpleWebTransport
SOURCE_PATH: SimpleWebTransport
runs-on: windows-latest
# needs: Tests
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.100'
- name: Install unity-packer
run: dotnet tool install -g unity-packer
- name: Package
run: >-
unity-packer pack ${{ env.TARGET_NAME }}.unitypackage
source ${{ env.SOURCE_PATH }}/scripts
LICENSE ${{ env.SOURCE_PATH }}/LICENSE
- uses: actions/upload-artifact@v1
with:
name: ${{ env.TARGET_NAME }}.unitypackage
path: ${{ env.TARGET_NAME }}.unitypackage
- name: Release
uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/exec
@semantic-release/changelog
@semantic-release/git
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}