Skip to content

Commit

Permalink
Separate build steps for Code Marketplace and OpenVSX
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Sep 10, 2024
1 parent 69a99f6 commit 51e1f1a
Showing 1 changed file with 59 additions and 2 deletions.
61 changes: 59 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ jobs:
path: ./dist

# Phase 3: Publish the built extension to the Marketplace.
publish:
name: "Publish"
publish-code-marketplace:
name: "Publish (Code Marketplace)"
needs: ["build"]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -231,6 +231,63 @@ jobs:
if: "!startsWith(github.ref, 'refs/tags/')"
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ./dist/ruff-*.vsix --pre-release

publish-openvsx:
name: "Publish (OpenVSX)"
needs: ["build"]
runs-on: ubuntu-latest
steps:
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: 18

- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: ${{ env.FETCH_DEPTH }}

# Download all built artifacts.
- uses: actions/download-artifact@v3
with:
name: dist-aarch64-apple-darwin
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-x86_64-apple-darwin
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-x86_64-unknown-linux-gnu
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-aarch64-unknown-linux-gnu
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-arm-unknown-linux-gnueabihf
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-x86_64-pc-windows-msvc
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-aarch64-pc-windows-msvc
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-x86_64-unknown-linux-musl
path: dist
- uses: actions/download-artifact@v3
with:
name: dist-aarch64-unknown-linux-musl
path: dist
- run: ls -al ./dist

# Install Node dependencies.
- run: npm ci

# Publish to OpenVSX.
- name: Publish Extension (OpenVSX, release)
if: "startsWith(github.ref, 'refs/tags/')"
Expand Down

0 comments on commit 51e1f1a

Please sign in to comment.