-
Notifications
You must be signed in to change notification settings - Fork 54
47 lines (45 loc) · 1.42 KB
/
release.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
on:
push:
tags:
- '*'
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release --nologo ./src/Lumina.sln
- name: dotnet test
run: dotnet test --configuration Release --nologo ./src/Lumina.sln
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: Lumina-${{ matrix.os }}
path: |
./src/Lumina/bin/Release/*.nupkg
./src/Lumina/bin/Release/*.snupkg
./src/Lumina/bin/Release/**/Lumina*.dll
./src/Lumina/bin/Release/**/Lumina*.xml
./src/Lumina/bin/Release/**/Lumina*.pdb
./src/Lumina/bin/Release/**/Lumina*.deps.json
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Lumina ${{ github.ref }}
draft: false
prerelease: false
- name: publish nuget package
run: dotnet nuget push ./src/Lumina/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate