forked from NiclasOlofsson/MiNET
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1.08 KB
/
dotnet.yml
File metadata and controls
42 lines (36 loc) · 1.08 KB
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
# 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: [ "release" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: src/MiNET/MiNET.Console
run: dotnet restore
- name: Test
working-directory: src/MiNET/MiNET.Console
run: dotnet test --no-build --verbosity normal
release:
permissions: write-all
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/MiNET/MiNET.Console/minet.zip
asset_name: MiNET.zip
tag: ${{ github.ref }}
release_name: MiNET-CobwebSMP 1.13.0.24 (1.21.50)
body: ${{ github.event.head_commit.message }}