I want to publish a Nuget package using the Automatic token authentication - GitHub Docs
name: Build Image
on: [push]
jobs:
Publish Package:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup dotnet
uses: https://github.com/actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Build
run: dotnet build -c Release
- name: Package
run: dotnet pack -c Release -o output
- name: Publish
run: dotnet nuget push --source myrepo ./output/*.nupkg
env:
NUGET_USERNAME: gitea-actions
NUGET_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
But it seems like it is not working