Publish unstable release #1
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: Publish unstable release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Tag name' | |
required: true | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: start X server | |
run: | | |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
echo "DISPLAY=:99" >> $GITHUB_ENV | |
- uses: actions/checkout@v2 | |
- name: read version | |
id: version | |
uses: martinbeentjes/[email protected] | |
- name: ci | |
run: npm ci | |
- name: test | |
run: npm test | |
- name: package | |
run: npm run package | |
- name: rename | |
run: mv vscode-clangd-${{ steps.version.outputs.current-version }} \ | |
vscode-clangd-unstable-${{ steps.version.outputs.current-version }} | |
- name: publish to Github | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "vscode-clangd-unstable-${{ steps.version.outputs.current-version }}.vsix" | |
tag: ${{ github.event.inputs.tag }} | |
commit: master | |
token: ${{ secrets.GITHUB_TOKEN }} |