From 30bbdffab12cc3180f2960c25e95d8410a1b8eda Mon Sep 17 00:00:00 2001 From: Joshua Feingold Date: Wed, 11 Oct 2023 16:19:08 -0500 Subject: [PATCH] @W-14093602@: Added flow for initial OpenVSX release. --- .github/workflows/openvsx-initial-release.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/openvsx-initial-release.yml diff --git a/.github/workflows/openvsx-initial-release.yml b/.github/workflows/openvsx-initial-release.yml new file mode 100644 index 0000000..ba5c484 --- /dev/null +++ b/.github/workflows/openvsx-initial-release.yml @@ -0,0 +1,35 @@ +name: Publish v0.2.0 to OpenVSX marketplace +on: + # Should only be possible to run this action manually. + workflow_dispatch: + +jobs: + publish-openvsx: + name: 'Publish to OpenVSX marketplace' + # The `publish` environment is inherited from the org level, and means the job + # can't proceed until someone with appropriate permissions approves it. + environment: publish + runs-on: ubuntu-latest + env: + OVSX_PAT: ${{ secrets.OVSX_PAT }} + GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} + steps: + - name: Check out the release tag + uses: actions/checkout@v3 + with: + ref: 'v0.2.0' + token: ${{ env.GITHUB_TOKEN }} + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - run: yarn install --frozen-lockfile + - name: Download Extension from Release + run: | + mkdir ./extensions + gh release download v0.2.0 -D ./extensions + - name: Display downloaded VSIX + run: ls -R ./extensions + - name: Publish the VSIX + run: find ./extensions -type f -name "*.vsix" -exec npx ovsx publish {} -p ${{ env.OVSX_PAT}} \; + - run: echo "SUCCESSFULLY PUBLISHED" +