Skip to content

Commit 196cb7b

Browse files
committed
2 parents 6b8b3bf + 053cd3a commit 196cb7b

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.github/workflows/dotnet.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33

44
name: .NET
55

6-
on:
7-
push:
8-
branches: [ "main" ]
9-
pull_request:
10-
branches: [ "main" ]
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'tag for the releasse'
11+
required: true
12+
default: latest
13+
type: string
14+
permissions:
15+
contents: write
1116

1217
jobs:
1318
build:
@@ -30,5 +35,13 @@ jobs:
3035
with:
3136
name: cs2randomizer.zip
3237
path: /home/runner/work/cs2-randomizer/cs2-randomizer/cs2-randomizer/bin/Release/net8.0/*.*
38+
- name: create release
39+
uses: ncipollo/[email protected]
40+
with:
41+
artifacts: ${{ github.workspace }}/ci-artifacts/cs2randomizer.zip
42+
tag: ${{ inputs.tag }}
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
45+
3346

3447

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ To install CS2 randomizer, you need the following:
2323
- [CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp)
2424

2525
After those are installed, you can grab the plugin from [Releases](https://github.com/gotimo2/cs2-randomizer/releases/tag/1.0) and simply add a `cs2-randomizer` folder under `game/csgo/addons/counterstrikesharp/plugins/` and unpack the plugin there.
26+
27+
After that the randomizer will be active as soon as the round starts, but if you're boring you can use `disable_randomizer` to disable the plugin.

0 commit comments

Comments
 (0)