File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments