release 2.8.4 #40
Workflow file for this run
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 | |
# runs when a tag v* is pushed | |
# releases the extension to GitHub and the vscode marketplace | |
on: | |
push: | |
tags: ["v*"] | |
env: | |
SCRIPT_DIR: ./.github/scripts | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: node $SCRIPT_DIR/enableWebpack.js | |
- run: yarn install | |
- uses: lannonbr/vsce-action@master | |
with: | |
args: "package" | |
- name: Identify output file # can be retrieved as steps.filenames.outputs.file_out | |
id: filenames | |
run: echo "::set-output name=file_out::$(ls | grep "^.*\.vsix$" | head -1)" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.filenames.outputs.file_out }} | |
path: ${{ steps.filenames.outputs.file_out }} | |
release: | |
name: Release | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: "artifacts/" | |
- name: Get version from tag | |
id: get_version | |
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\/v/} | |
- name: Create release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
files: "artifacts/*/*" | |
prerelease: false | |
draft: false | |
publish: | |
name: Publish | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: node $SCRIPT_DIR/enableWebpack.js | |
- run: yarn install | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v1 | |
id: publishToOpenVSX | |
with: | |
pat: ${{ secrets.OPEN_VSX_TOKEN }} | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.VSCE_TOKEN }} | |
registryUrl: https://marketplace.visualstudio.com | |
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} |