Skip to content

Commit d467d10

Browse files
Add a Github workflow for creating an unstable release (#748)
The workflow is manually triggered, and creates a Github release containing a build from the master branch.
1 parent 17d6a42 commit d467d10

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish unstable release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
description: 'Tag name'
7+
required: true
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: start X server
13+
run: |
14+
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
15+
echo "DISPLAY=:99" >> $GITHUB_ENV
16+
- uses: actions/checkout@v2
17+
- name: read version
18+
id: version
19+
uses: martinbeentjes/[email protected]
20+
- name: read commit id
21+
id: commit_id
22+
run: echo "commit_id=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
23+
- name: ci
24+
run: npm ci
25+
- name: test
26+
run: npm test
27+
- name: package
28+
run: npm run package
29+
- name: rename
30+
run: mv vscode-clangd-${{ steps.version.outputs.current-version }}.vsix
31+
vscode-clangd-unstable-${{ steps.commit_id.outputs.commit_id }}.vsix
32+
- name: publish to Github
33+
uses: ncipollo/release-action@v1
34+
with:
35+
artifacts: "vscode-clangd-unstable-${{ steps.commit_id.outputs.commit_id }}.vsix"
36+
tag: ${{ github.event.inputs.tag }}
37+
commit: master
38+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)