Skip to content

Commit bec98b4

Browse files
authored
Merge pull request #9 from dexcompiler/copilot/add-github-release-automation
Automate GitHub release creation on tag publish
2 parents f646008 + 344b9f5 commit bec98b4

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/publish-nuget.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
publish:
@@ -39,3 +39,9 @@ jobs:
3939

4040
- name: Push to NuGet
4141
run: dotnet nuget push artifacts/*.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
42+
43+
- name: Create GitHub Release
44+
if: startsWith(github.ref, 'refs/tags/')
45+
env:
46+
GITHUB_TOKEN: ${{ github.token }}
47+
run: gh release create "${{ github.ref_name }}" --generate-notes --verify-tag

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ The implementation uses constant-time conditional moves (`CMov`, `CSwap`) to pre
167167
2. Update `Version` in `src/Ed25519.csproj` for the intended release.
168168
3. Push a tag in `vX.Y.Z` format (for example, `v1.0.5`).
169169
4. GitHub Actions will build, test, pack, and publish `Dexcompiler.Ed25519` with `--skip-duplicate`.
170-
5. Verify package availability on nuget.org and test `dotnet add package Dexcompiler.Ed25519` in a clean project.
170+
5. The same tag workflow also creates a GitHub Release with autogenerated notes for that tag.
171+
6. Verify package availability on nuget.org and test `dotnet add package Dexcompiler.Ed25519` in a clean project.
171172

172173
## License
173174

0 commit comments

Comments
 (0)