forked from clangd/vscode-clangd
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.14 KB
/
unstable-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: read commit id
id: commit_id
run: echo "commit_id=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- 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.commit_id.outputs.commit_id }}.vsix
- name: publish to Github
uses: ncipollo/release-action@v1
with:
artifacts: "vscode-clangd-unstable-${{ steps.commit_id.outputs.commit_id }}.vsix"
tag: ${{ github.event.inputs.tag }}
commit: master
token: ${{ secrets.GITHUB_TOKEN }}