Skip to content

Commit 23a51f5

Browse files
committed
chore: publish workflow updates
1 parent b5c1056 commit 23a51f5

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,23 @@ name: Publish to VS Marketplace
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: write
8+
actions: read
9+
610
jobs:
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
1218

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
2025

@@ -30,7 +35,6 @@ jobs:
3035
artifacts: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.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 }}
3640

@@ -41,3 +45,17 @@ jobs:
4145
marketplace-pat: ${{ secrets.VS_PAT }}
4246
publish-manifest-path: ./resources/extension.manifest.json
4347
vsix-path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
48+
49+
notify:
50+
needs: publish
51+
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
52+
with:
53+
post_text: |
54+
🚀 Open in Notepad++ 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 }})
57+
58+
Marketplace: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus
59+
secrets:
60+
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }}
61+
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}

0 commit comments

Comments
 (0)