|
| 1 | +name: Publish to VS Marketplace |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +permissions: |
| 7 | + contents: write |
| 8 | + actions: read |
| 9 | + |
| 10 | +jobs: |
| 11 | + publish: |
| 12 | + runs-on: windows-latest |
| 13 | + outputs: |
| 14 | + version: ${{ steps.artifact_manifest.outputs.version }} |
| 15 | + steps: |
| 16 | + - name: Checkout |
| 17 | + uses: actions/checkout@v4 |
| 18 | + |
| 19 | + - name: 1. Download artifact |
| 20 | + id: download-artifact |
| 21 | + uses: dawidd6/action-download-artifact@v6 |
| 22 | + with: |
| 23 | + workflow: release_build_and_deploy.yml |
| 24 | + workflow_conclusion: success |
| 25 | + |
| 26 | + - name: 2. Parse Artifact Manifest |
| 27 | + id: artifact_manifest |
| 28 | + uses: ActionsTools/read-json-action@main |
| 29 | + with: |
| 30 | + file_path: ./artifact/CodingWithCalvin.CouchbaseExplorer.info |
| 31 | + |
| 32 | + - name: 3. Create Tag & Release |
| 33 | + |
| 34 | + with: |
| 35 | + artifacts: ./artifact/CodingWithCalvin.CouchbaseExplorer.vsix |
| 36 | + generateReleaseNotes: true |
| 37 | + makeLatest: true |
| 38 | + commit: ${{ steps.artifact_manifest.outputs.sha }} |
| 39 | + tag: ${{ steps.artifact_manifest.outputs.version }} |
| 40 | + |
| 41 | + - name: 4. Publish Release to Marketplace |
| 42 | + if: success() |
| 43 | + uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1 |
| 44 | + with: |
| 45 | + marketplace-pat: ${{ secrets.VS_PAT }} |
| 46 | + publish-manifest-path: ./resources/extension.manifest.json |
| 47 | + vsix-path: ./artifact/CodingWithCalvin.CouchbaseExplorer.vsix |
| 48 | + |
| 49 | + notify: |
| 50 | + needs: publish |
| 51 | + uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main |
| 52 | + with: |
| 53 | + post_text: | |
| 54 | + 🚀 Couchbase Explorer 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-CouchbaseExplorer |
| 59 | + secrets: |
| 60 | + BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }} |
| 61 | + BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }} |
0 commit comments