Bump version to 0.1.1 #19
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 | |
env: | |
GBC_REPOSITORY: tomwyr/git-branch-cleaner | |
VSCE_AUTH_TOKEN: ${{ secrets.VSCE_AUTH_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Install dependencies and tools | |
run: | | |
npm install && npm install -g @vscode/vsce | |
sudo apt-get update && sudo apt-get install -y jq | |
- name: Resolve dependencies versions | |
id: resolve-versions | |
run: scripts/resolve-dependencies-versions.sh | |
env: | |
GBC_REPOSITORY: tomwyr/git-branch-cleaner | |
- name: Build and publish Linux extension | |
run: scripts/publish-extension.sh | |
env: | |
GBC_VERSION: ${{ steps.resolve-versions.outputs.gbc_version }} | |
FFI_VERSION: ${{ steps.resolve-versions.outputs.ffi_version }} | |
VSCE_TARGET: linux-x64 | |
GBC_PLATFORM_SUFFIX: linux.so | |
FFI_PACKAGES: "@yuuang/ffi-rs-linux-x64-gnu @yuuang/ffi-rs-linux-x64-musl" | |
- name: Build and publish Windows extension | |
run: scripts/publish-extension.sh | |
env: | |
GBC_VERSION: ${{ steps.resolve-versions.outputs.gbc_version }} | |
FFI_VERSION: ${{ steps.resolve-versions.outputs.ffi_version }} | |
VSCE_TARGET: win32-x64 | |
GBC_PLATFORM_SUFFIX: windows.dll | |
FFI_PACKAGES: "@yuuang/ffi-rs-win32-x64-msvc" | |
- name: Build and publish MacOS extension | |
run: scripts/publish-extension.sh | |
env: | |
GBC_VERSION: ${{ steps.resolve-versions.outputs.gbc_version }} | |
FFI_VERSION: ${{ steps.resolve-versions.outputs.ffi_version }} | |
VSCE_TARGET: darwin-arm64 | |
GBC_PLATFORM_SUFFIX: macos.dylib | |
FFI_PACKAGES: "@yuuang/ffi-rs-darwin-arm64" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
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) |