Skip to content

Initial Commit

Initial Commit #1

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: 1.0.0
BUILD_NUMBER: ${{ github.run_number }}
PROJECT_PATH: "FixDemoVoiceChat.csproj"
PROJECT_NAME: "FixDemoVoiceChat"
OUTPUT_PATH: "./Release"
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: 7.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.BUILD_NUMBER }}
- name: Zip
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: '${{ env.PROJECT_NAME }}-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.zip'
path: ${{ env.OUTPUT_PATH }}
- name: Release
uses: ncipollo/[email protected]
with:
artifacts: ${{ env.PROJECT_NAME }}-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.zip
name: "Version ${{ env.VERSION }}.${{ env.BUILD_NUMBER }}"
tag: "v${{ env.VERSION }}.${{ env.BUILD_NUMBER }}"
body: |
Place the plugin in game/csgo/addons/counterstrikesharp/plugins/FixDemoVoiceChat