Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
b0ink committed Jan 15, 2024
0 parents commit 1d84243
Show file tree
Hide file tree
Showing 5 changed files with 522 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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/zip-release@0.7.5
with:
type: 'zip'
filename: '${{ env.PROJECT_NAME }}-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.zip'
path: ${{ env.OUTPUT_PATH }}

- name: Release
uses: ncipollo/release-action@v1.12.0
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
Loading

0 comments on commit 1d84243

Please sign in to comment.