Skip to content

Update to CS# v305 #1 #10

Update to CS# v305 #1

Update to CS# v305 #1 #10

Workflow file for this run

# 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/