-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.25 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
# 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:
workflow_dispatch:
inputs:
tag:
description: 'tag for the releasse'
required: true
default: latest
type: string
permissions:
contents: write
jobs:
build:
defaults:
run:
working-directory: ./cs2-randomizer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: cs2randomizer.zip
path: /home/runner/work/cs2-randomizer/cs2-randomizer/cs2-randomizer/bin/Release/net8.0/*.*
- name: create release
uses: ncipollo/[email protected]
with:
artifacts: ${{ github.workspace }}/ci-artifacts/cs2randomizer.zip
tag: ${{ inputs.tag }}
token: ${{ secrets.GITHUB_TOKEN }}