forked from KosmosisDire/TeammateRevive
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.23 KB
/
release.yaml
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
# Triggers on every pushed tag
on:
push:
tags:
- "*"
jobs:
# Build on Linux because it's faster and .NET is cross-platform
release-linux:
runs-on: ubuntu-latest
steps:
- uses: little-core-labs/[email protected]
id: get_version
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build DLL
run: dotnet build --configuration Release --no-restore
- name: Prepare mod folder
run: |
mkdir mod
cp TeammateRevive/bin/Release/TeammateRevive.dll mod/
cp README.md mod/
cp manifest.json mod/
cp readme/icon.png mod/
- name: Package mod as a zip
uses: vimtor/action-zip@v1
with:
files: mod
dest: mod.zip
- name: Upload mod package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: mod.zip
asset_name: TeammateRevive-${{ steps.get_version.outputs.tag }}.zip
tag: ${{ github.ref }}
overwrite: true