Skip to content

add readme and workflows #2

add readme and workflows

add readme and workflows #2

Workflow file for this run

name: Publish

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
on:
push:
tags:
- "v*"
jobs:
publish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build OpenSkillSharp/OpenSkillSharp.csproj --configuration Release --no-restore
- name: Pack
run: dotnet pack OpenSkillSharp/OpenSkillSharp.csproj --configuration Release --no-build --output ./nupkg /p:Version=${GITHUB_REF#refs/tags/v}
- name: Publish to NuGet
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json