Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Github workflow for creating an unstable release #748

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/unstable-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}
Loading