From 903f360d270f1cdb3bc357d524ee001d319689f3 Mon Sep 17 00:00:00 2001 From: ManuelHentschel <53863351+ManuelHentschel@users.noreply.github.com> Date: Thu, 24 Dec 2020 01:24:05 +0100 Subject: [PATCH 1/2] Set release=false for auto release --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f14e58f12..97cbc90be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,5 +43,5 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} files: "artifacts/*/*" prerelease: false - draft: true # Could also be false to publish the release immediately + draft: false From 9b24cf9b47117f14f2552200ccb46526137f4803 Mon Sep 17 00:00:00 2001 From: ManuelHentschel <53863351+ManuelHentschel@users.noreply.github.com> Date: Thu, 24 Dec 2020 01:24:23 +0100 Subject: [PATCH 2/2] Automatically release to marketplace --- .github/workflows/release.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97cbc90be..832074561 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: release # runs when a tag v* is pushed -# creates a release draft with the binaries +# releases the extension to GitHub and the vscode marketplace on: push: @@ -45,3 +45,17 @@ jobs: prerelease: false draft: false + + publish: + name: Publish + timeout-minutes: 30 + needs: release # doesn't really need these, just to make sure that packaging etc worked + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm install + - uses: lannonbr/vsce-action@master + with: + args: "publish -p $VSCE_TOKEN" + env: + VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}