Release #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
# NOTE: GH Actions string encodes boolean variables (i.e. 'true' or 'false'). | |
# We need to convert these to actual booleans via fromJSON for conditional checks. | |
if: ${{ fromJSON(needs.build.outputs.onPublicationBranch) }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Download a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: Extension | |
path: ./extension | |
- name: Create GitHub release | |
uses: softprops/[email protected] | |
with: | |
name: Release ${{ needs.build.outputs.version }} | |
prerelease: ${{ fromJson(needs.build.outputs.preRelease) }} | |
tag_name: ${{ needs.build.outputs.version }} | |
files: ./extension/* | |
token: ${{ secrets.GITHUB_TOKEN }} | |
target_commitish: ${{ github.sha }} | |
- name: Publish debug extension to VSCode Marketplace | |
run: npx vsce publish -i ${{ format('./extension/dbos-ttdbg-{0}.vsix', needs.build.outputs.version) }} -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} |