-
Notifications
You must be signed in to change notification settings - Fork 13
Bump Autodesk.Forge.Core to 4.1.2 (signed release) + add signed-package publish workflow #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
5fd9075
Bump Autodesk.Forge.Core to 4.1.2 for signed DLL release
MadhukarMoogala dd8b8ed
Add workflow to publish a pre-signed nupkg from a GitHub Release to N…
MadhukarMoogala dca72e2
Address Copilot review: handle .snupkg symbol package, add explicit p…
MadhukarMoogala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: Publish Signed Package | ||
|
|
||
| # Publishes a pre-signed package set (.nupkg and, if present, its .snupkg symbol | ||
| # package) attached as GitHub Release assets directly to nuget.org, with no | ||
| # build/pack step. Use this for releases where the DLL was signed locally with | ||
| # garasign (which requires Autodesk's internal network and is not reachable | ||
| # from GitHub-hosted runners). | ||
| # | ||
| # Usage: | ||
| # 1. Build and sign the package locally, then attach the .nupkg (and .snupkg, | ||
| # if present) as assets to a GitHub Release, e.g.: | ||
| # gh release create v4.1.2-signed Autodesk.Forge.Core.4.1.2.nupkg Autodesk.Forge.Core.4.1.2.snupkg --title "v4.1.2 (signed)" | ||
| # 2. Run this workflow from the Actions tab (workflow_dispatch), providing the | ||
| # release tag and the package id+version (e.g. Autodesk.Forge.Core.4.1.2). | ||
| # Both the .nupkg and, if attached, the matching .snupkg will be downloaded | ||
| # and pushed together. | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| release_tag: | ||
| description: "GitHub release tag containing the signed .nupkg (and optional .snupkg) asset" | ||
| required: true | ||
| package_id_version: | ||
| description: "Package id + version, no extension (e.g. Autodesk.Forge.Core.4.1.2)" | ||
| required: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: 8.0.x | ||
|
|
||
| - name: Download signed package(s) from release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| mkdir -p ./packages | ||
| gh release download "${{ inputs.release_tag }}" \ | ||
| --repo "${{ github.repository }}" \ | ||
| --pattern "${{ inputs.package_id_version }}.nupkg" \ | ||
| --dir ./packages | ||
| gh release download "${{ inputs.release_tag }}" \ | ||
| --repo "${{ github.repository }}" \ | ||
| --pattern "${{ inputs.package_id_version }}.snupkg" \ | ||
| --dir ./packages \ | ||
| --skip-existing || echo "No matching .snupkg asset found, continuing with .nupkg only." | ||
|
|
||
| - name: Push to NuGet.org | ||
| run: | | ||
| for f in ./packages/*.nupkg ./packages/*.snupkg; do | ||
| [ -e "$f" ] || continue | ||
| dotnet nuget push "$f" \ | ||
| -k "${{ secrets.NUGETAPIKEYBYENGOPS }}" \ | ||
| -s https://api.nuget.org/v3/index.json \ | ||
| --skip-duplicate | ||
| done | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.