Skip to content

Commit e2c8bd0

Browse files
DJGosnellclaude
andcommitted
Add pack, release and NuGet push to check-update workflow.
GITHUB_TOKEN events don't trigger other workflows, so the tag created by check-update won't trigger dotnet.yml. Include pack/release/NuGet push steps directly. dotnet.yml remains unchanged for master pushes, PRs, and manual tag publishes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e7384dc commit e2c8bd0

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/check-update.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ jobs:
154154
if: steps.compare.outputs.needs_update == 'true'
155155
run: dotnet test src/PDFiumCore.Tests -c Release
156156

157+
- name: Pack
158+
if: steps.compare.outputs.needs_update == 'true'
159+
run: dotnet pack src/PDFiumCore -c Release -o ./artifacts
160+
157161
- name: Commit, tag and push
158162
if: steps.compare.outputs.needs_update == 'true'
159163
run: |
@@ -168,3 +172,17 @@ jobs:
168172
git commit -m "PDFium version v${VERSION} ${TAG_NAME} [master]"
169173
git tag "$TAG"
170174
git push origin master "$TAG"
175+
176+
- name: Create release
177+
if: steps.compare.outputs.needs_update == 'true'
178+
uses: softprops/action-gh-release@v2
179+
with:
180+
tag_name: v${{ steps.upstream.outputs.version }}
181+
name: "PDFiumCore v${{ steps.upstream.outputs.version }} Released"
182+
files: |
183+
artifacts/*.nupkg
184+
artifacts/*.snupkg
185+
186+
- name: Push NuGet packages
187+
if: steps.compare.outputs.needs_update == 'true'
188+
run: dotnet nuget push artifacts/*.nupkg --api-key ${{ secrets.ORG_NUGET_AUTH_TOKEN }} --skip-duplicate

0 commit comments

Comments
 (0)