Skip to content

Commit

Permalink
ci: Download extension vsix artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Antyos committed Jul 22, 2023
1 parent 7199f1f commit 8d63937
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,32 +59,39 @@ jobs:
- name: Upload extension artifact
uses: actions/upload-artifact@v3
with:
name: extension-vsix
name: openscad-vsix
path: ${{ steps.packageExtension.outputs.vsixPath }}

deploy:
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Download artifact
id: download
uses: actions/download-artifact@v3
with:
name: openscad-vsix

- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ needs.build.outputs.vsixPath }}
artifacts: ${{ steps.download.outputs.download-path }}

# Pulbish to Open VSX Registry
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: ${{ needs.build.outputs.vsixPath }}
extensionFile: ${{ steps.download.outputs.download-path }}
registryUrl: https://open-vsx.org

# Publish to VS Marketplace
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
extensionFile: ${{ needs.build.outputs.vsixPath }}
extensionFile: ${{ steps.download.outputs.download-path }}
registryUrl: https://marketplace.visualstudio.com

0 comments on commit 8d63937

Please sign in to comment.