-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.52 KB
/
dotnet.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: ["main"]
env:
VERSION: 3.0.0
PROJECT_PATH: "FixDemoVoiceChat.csproj"
PROJECT_NAME: "FixDemoVoiceChat"
OUTPUT_PATH: "./FixDemoVoiceChat"
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build ${{ env.PROJECT_PATH }} -c Release -o ${{ env.OUTPUT_PATH }} -p:Version=${{ env.VERSION }} --version-suffix ${{ env.VERSION }}
- name: Zip
uses: thedoctor0/zip-release@0.7.5
with:
type: "zip"
filename: "${{ env.PROJECT_NAME }}-${{ env.VERSION }}.zip"
path: ${{ env.OUTPUT_PATH }}
- name: Release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: ${{ env.PROJECT_NAME }}-${{ env.VERSION }}.zip
name: "Version ${{ env.VERSION }}"
tag: "v${{ env.VERSION }}"
body: |
Place the FixDemoVoiceChat folder in game/csgo/addons/counterstrikesharp/plugins/