v1.0.0-rc.1 #1
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 nuget package | ||
on: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
build-and-test: | ||
Check failure on line 8 in .github/workflows/publish.yml GitHub Actions / Publish nuget packageInvalid workflow file
|
||
name: build-and-test | ||
uses: ./.github/workflows/build-test-publish.yml | ||
with: | ||
should-package: true | ||
should-publish-gh-page: true | ||
gh-page-destination-directory: ${{ github.event.release.tag_name }} | ||
publish: | ||
name: publish | ||
needs: [ build-and-test ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: 🔃 download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: . | ||
- name: 📦 setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
- name: 🚀 publish nuget packages | ||
run: dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |