Skip to content

Commit f14f2f5

Browse files
authored
chore: use shared changelog workflow for releases (#12)
Replaces auto-generated release notes with the organization's shared changelog workflow for consistent, categorized release notes.
1 parent f54a727 commit f14f2f5

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,45 @@ on:
44
workflow_dispatch:
55

66
jobs:
7+
changelog:
8+
name: Generate Changelog
9+
uses: CodingWithCalvin/.github/.github/workflows/generate-changelog.yml@main
10+
711
publish:
12+
needs: changelog
813
runs-on: windows-latest
14+
permissions:
15+
contents: write
916
steps:
1017
- name: Checkout
1118
uses: actions/checkout@v4
12-
19+
1320
- name: 1. Download artifact
1421
id: download-artifact
1522
uses: dawidd6/action-download-artifact@v2
1623
with:
17-
github_token: ${{ secrets.GH_SECRET }}
1824
workflow: release_build_and_deploy.yml
1925
workflow_conclusion: success
20-
26+
2127
- name: 2. Parse Artifact Manifest
2228
id: artifact_manifest
2329
uses: ActionsTools/read-json-action@main
2430
with:
2531
file_path: ./artifact/CodingWithCalvin.OpenBinFolder.info
26-
32+
2733
- name: 3. Create Tag & Release
2834
uses: ncipollo/release-action@v1.14.0
2935
with:
3036
artifacts: ./artifact/CodingWithCalvin.OpenBinFolder.vsix
31-
generateReleaseNotes: true
37+
body: ${{ needs.changelog.outputs.changelog }}
3238
makeLatest: true
33-
token: ${{ secrets.GH_SECRET }}
3439
commit: ${{ steps.artifact_manifest.outputs.sha }}
3540
tag: ${{ steps.artifact_manifest.outputs.version }}
36-
41+
3742
- name: 4. Publish Release to Marketplace
3843
if: success()
3944
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
4045
with:
4146
marketplace-pat: ${{ secrets.VS_PAT }}
4247
publish-manifest-path: ./resources/extension.manifest.json
4348
vsix-path: ./artifact/CodingWithCalvin.OpenBinFolder.vsix
44-
45-

0 commit comments

Comments
 (0)