Skip to content

Commit

Permalink
ci: Fix vsix artifact path (I hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antyos committed Jul 22, 2023
1 parent 8d63937 commit 47cb16b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
runs-on: ubuntu-latest
outputs:
vsixPath: ${{ steps.packageExtension.outputs.vsixPath }}
vsixName: ${{ steps.packageExtension.outputs.vsixPath }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -62,12 +62,13 @@ jobs:
name: openscad-vsix
path: ${{ steps.packageExtension.outputs.vsixPath }}

deploy:
release:
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
Expand All @@ -77,21 +78,21 @@ jobs:
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ steps.download.outputs.download-path }}
artifacts: ${{ steps.download.outputs.download-path }}/${{ needs.build.outputs.vsixName }}

# 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: ${{ steps.download.outputs.download-path }}
extensionFile: ${{ steps.download.outputs.download-path }}/${{ needs.build.outputs.vsixName }}
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: ${{ steps.download.outputs.download-path }}
extensionFile: ${{ steps.download.outputs.download-path }}/${{ needs.build.outputs.vsixName }}
registryUrl: https://marketplace.visualstudio.com

0 comments on commit 47cb16b

Please sign in to comment.