Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/build-publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ on:
- 'README.md'
- 'LICENSE'
- '.github/workflows/build-publish-nuget.yml'
pull_request:
paths:
- 'src/**'
- 'Directory.Build.*'
- 'Autoredi.sln'
- 'README.md'
- 'LICENSE'
- '.github/workflows/build-publish-nuget.yml'

env:
MAIN_PROJECT_FILE: 'src/Autoredi/Autoredi.csproj'
Expand All @@ -46,13 +38,19 @@ jobs:
with:
dotnet-version: '9.0.x'

- name: Ensure GitHub Packages token
if: secrets.GH_PACKAGES_TOKEN == ''
run: |
echo "Missing GH_PACKAGES_TOKEN (PAT with read:packages). Configure it in repo secrets."
exit 1

- name: Add GitHub Packages source
run: |
dotnet nuget remove source github || true
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
--name github \
--username "${{ github.actor }}" \
--password "${{ secrets.GITHUB_TOKEN }}" \
--password "${{ secrets.GH_PACKAGES_TOKEN }}" \
--store-password-in-clear-text

- name: Create SNK file from secret
Expand Down
2 changes: 1 addition & 1 deletion src/Autoredi/Autoredi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<PackageId>Autoredi</PackageId>
<Version>0.4.1</Version>
<Version>0.4.2</Version>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
Expand Down