Thunderstore CLI 0.2.4 #16
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
name: Publish | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
nuget: | |
name: Publish NuGet Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ref that triggered workflow | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '7' | |
- name: Fetch Latest .nupkg | |
uses: dsaltares/[email protected] | |
with: | |
version: "tags/${{ github.ref_name }}" | |
file: "tcli.${{ github.ref_name }}.nupkg" | |
target: "tcli.nupkg" | |
- name: Publish to NuGet | |
shell: bash | |
run: dotnet nuget push tcli.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate |