From 92e54bdde004b4fae0118b1a484e492e2696032d Mon Sep 17 00:00:00 2001 From: Dynasty 11 Dev Date: Mon, 23 Sep 2024 17:33:36 -0400 Subject: [PATCH] merged in pipelines --- .github/workflows/publish-extension.yml | 36 ------------------- .../{build-extension.yml => release.yml} | 11 ++++++ 2 files changed, 11 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/publish-extension.yml rename .github/workflows/{build-extension.yml => release.yml} (73%) diff --git a/.github/workflows/publish-extension.yml b/.github/workflows/publish-extension.yml deleted file mode 100644 index 5528d83..0000000 --- a/.github/workflows/publish-extension.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Publish extension - -on: - release: - types: [published] - -jobs: - openvsx: - name: "Open VSX Registry" - if: endsWith(github.event.release.assets[0].name, '.vsix') - runs-on: ubuntu-latest - steps: - - name: Download release artifact - run: "curl -L -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/octet-stream' ${{ github.event.release.assets[0].url }} --output extension.vsix" - - name: Validate extension file - run: unzip -f extension.vsix extension/package.json - - name: Publish to Open VSX Registry - uses: HaaLeo/publish-vscode-extension@v1 - with: - pat: ${{ secrets.OPEN_VSX_TOKEN }} - extensionFile: extension.vsix - vs: - name: "Visual Studio Marketplace" - if: endsWith(github.event.release.assets[0].name, '.vsix') - runs-on: ubuntu-latest - steps: - - name: Download release artifact - run: "curl -L -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/octet-stream' ${{ github.event.release.assets[0].url }} --output extension.vsix" - - name: Validate extension file - run: unzip -f extension.vsix extension/package.json - - name: Publish to Visual Studio Marketplace - uses: HaaLeo/publish-vscode-extension@v1 - with: - pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} - registryUrl: https://marketplace.visualstudio.com - extensionFile: extension.vsix diff --git a/.github/workflows/build-extension.yml b/.github/workflows/release.yml similarity index 73% rename from .github/workflows/build-extension.yml rename to .github/workflows/release.yml index ad82f70..4ae89bc 100644 --- a/.github/workflows/build-extension.yml +++ b/.github/workflows/release.yml @@ -42,3 +42,14 @@ jobs: tag_name: v${{ steps.package-version.outputs.current-version }} draft: false files: postscript-preview-${{ steps.package-version.outputs.current-version }}.vsix + - name: Publish to Open VSX Registry + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.OPEN_VSX_TOKEN }} + extensionFile: postscript-preview-${{ steps.package-version.outputs.current-version }}.vsix + - name: Publish to Visual Studio Marketplace + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} + registryUrl: https://marketplace.visualstudio.com + extensionFile: postscript-preview-${{ steps.package-version.outputs.current-version }}.vsix