Skip to content

Commit

Permalink
Add a Github workflow for creating an unstable release
Browse files Browse the repository at this point in the history
The workflow is manually triggered, and creates a Github
release containing a build from the master branch.
  • Loading branch information
HighCommander4 committed Dec 6, 2024
1 parent 17d6a42 commit af79750
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/unstable-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 }}.vsix \
vscode-clangd-unstable-${{ steps.version.outputs.current-version }}.vsix
- 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 }}

0 comments on commit af79750

Please sign in to comment.