Merge pull request #87 from Soreepeong/patch-1 #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |