@@ -3,37 +3,41 @@ name: Publish to VS Marketplace
33on :
44 workflow_dispatch :
55
6+ permissions :
7+ contents : write
8+ actions : read
9+
610jobs :
711 publish :
812 runs-on : windows-latest
13+ outputs :
14+ version : ${{ steps.artifact_manifest.outputs.version }}
915 steps :
1016 - name : Checkout
1117 uses : actions/checkout@v4
12-
18+
1319 - name : 1. Download artifact
1420 id : download-artifact
15- uses : dawidd6/action-download-artifact@v2
21+ uses : dawidd6/action-download-artifact@v6
1622 with :
17- github_token : ${{ secrets.GH_SECRET }}
1823 workflow : release_build_and_deploy.yml
1924 workflow_conclusion : success
20-
25+
2126 - name : 2. Parse Artifact Manifest
2227 id : artifact_manifest
2328 uses : ActionsTools/read-json-action@main
2429 with :
2530 file_path : ./artifact/CodingWithCalvin.ProjectRenamifier.info
26-
31+
2732 - name : 3. Create Tag & Release
28332934 with :
3035 artifacts : ./artifact/CodingWithCalvin.ProjectRenamifier.vsix
3136 generateReleaseNotes : true
3237 makeLatest : true
33- token : ${{ secrets.GH_SECRET }}
3438 commit : ${{ steps.artifact_manifest.outputs.sha }}
3539 tag : ${{ steps.artifact_manifest.outputs.version }}
36-
40+
3741 - name : 4. Publish Release to Marketplace
3842 if : success()
3943 uses : CodingWithCalvin/GHA-VSMarketplacePublisher@v1
4246 publish-manifest-path : ./resources/extension.manifest.json
4347 vsix-path : ./artifact/CodingWithCalvin.ProjectRenamifier.vsix
4448
49+ notify :
50+ needs : publish
51+ uses : CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
52+ with :
53+ post_text : |
54+ 🚀 Project Renamifier v${{ needs.publish.outputs.version }} for #VisualStudio has been released!
55+
56+ [Check out the release notes here!](https://github.com/${{ github.repository }}/releases/tag/${{ needs.publish.outputs.version }})
4557
58+ Marketplace: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-ProjectRenamifier
59+ secrets :
60+ BLUESKY_USERNAME : ${{ secrets.BLUESKY_USERNAME }}
61+ BLUESKY_APP_PASSWORD : ${{ secrets.BLUESKY_APP_PASSWORD }}
0 commit comments