Skip to content

v1.0.0-rc.1

v1.0.0-rc.1 #1

Workflow file for this run

name: Publish nuget package
on:
release:
types: [ published ]
jobs:
build-and-test:

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

View workflow run for this annotation

GitHub Actions / Publish nuget package

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 8, Col: 3): Error calling workflow 'Spillgebees/Blazor.RichTextEditor/.github/workflows/build-test-publish.yml@9b7be1a5c47f7c61223f47b5a7c1b3d8cff4cf5d'. The nested job 'build-test-publish' is requesting 'contents: write', but is only allowed 'contents: read'.
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