Skip to content

Commit

Permalink
ci: Support publishing prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
malmeloo committed Apr 22, 2024
1 parent 496b7bc commit ac65ca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish
name: Build

# inspired by https://github.com/HaaLeo/vscode-timing/blob/master/.github/workflows/cicd.yml

Expand Down Expand Up @@ -43,6 +43,7 @@ jobs:
with:
pat: stub
dryRun: true
preRelease: ${{ github.event_name != 'release' || github.event.release.prerelease }}
- name: Upload Extension Package as Artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -75,4 +76,5 @@ jobs:
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
extensionFile: ${{ needs.build.outputs.vsixPath }}
preRelease: ${{ github.event_name != 'release' || github.event.release.prerelease }}
registryUrl: https://marketplace.visualstudio.com

0 comments on commit ac65ca8

Please sign in to comment.