Skip to content

Merge pull request #37 from mercari/oneof-default #9

Merge pull request #37 from mercari/oneof-default

Merge pull request #37 from mercari/oneof-default #9

Workflow file for this run

name: release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
publish:
name: release vscode extension
runs-on: ubuntu-latest
steps:
- name: install npx
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y npm nodejs
sudo npm -g install n
sudo n stable
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: extract version from tags
id: meta
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: build extension
run: |
make build/vscode-extension
env:
VERSION: ${{ steps.meta.outputs.VERSION }}
- name: run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --skip-publish --clean
- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files: |
./lsp/client/vscode/grpc-federation-*.vsix
./dist/grpc-federation_*_checksums.txt
./dist/grpc-federation_*_*_*.tar.gz
./dist/grpc-federation_*_*_*.zip