Skip to content

v0.1.0

v0.1.0 #1

Workflow file for this run

name: Release publish
on:
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
release:
types:
- published # Run the workflow when a new GitHub release is published
permissions:
contents: read
actions: read
checks: write
jobs:
build:

Check failure on line 15 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release publish

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 15, Col: 3): Error calling workflow 'Litee/moq.analyzers/.github/workflows/main.yml@3f7a811a4ef5e55ed118b196f755257f9c334ac9'. The workflow is requesting 'packages: read, security-events: write', but is only allowed 'packages: none, security-events: none'.
uses: ./.github/workflows/main.yml
publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download packages
uses: actions/download-artifact@v4
with:
path: packages
pattern: packages-windows-*
merge-multiple: true
- name: Publish NuGet package
shell: pwsh
run: |
foreach ($file in (Get-ChildItem ./packages/release -Recurse -Include *.nupkg)) {
echo "NuGet publish for file: '$file'"
# TODO: Wire to publishing packages
# dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}