Bump version to 0.0.3 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish new release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
permissions: | |
contents: write | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Install dependencies | |
run: npm install && npm install -g @vscode/vsce | |
- name: Build extension | |
run: vsce package | |
- name: Publish extension | |
run: vsce publish -p ${{ secrets.VSCE_AUTH_TOKEN }} | |
- name: Download gbc library | |
run: scripts/download-gbc-lib.sh | |
env: | |
REPOSITORY: ${{ github.repository }} | |
VERSION: ${{ github.ref_name }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: git-branch-cleaner-vscode-${{ github.ref_name }}.vsix | |
path: git-branch-cleaner-vscode-${{ github.ref_name }}.vsix | |
if-no-files-found: error | |
create-github-relase: | |
needs: build-and-publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: assets | |
merge-multiple: true | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: ${{ github.ref_name }} | |
files: assets/* | |
body: | | |
[Changelog](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGELOG.md) |