Skip to content

Commit

Permalink
Backport pgv generator gh release config
Browse files Browse the repository at this point in the history
  • Loading branch information
rauanmayemir committed May 5, 2022
1 parent d1a2439 commit 9d4497f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'build and upload binary into release'

on:
push:
tags:
- '*'

jobs:
checkout-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: wget https://github.com/github-release/github-release/releases/download/v0.10.0/linux-amd64-github-release.bz2
- run: bzip2 -d linux-amd64-github-release.bz2
- run: chmod +x linux-amd64-github-release
- run: mv linux-amd64-github-release grel
- run: go build .

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: upload binary into release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "./grel upload -u buhta \
-r protoc-gen-validate \
-t \"${{ steps.get_version.outputs.VERSION }}\" \
-n protoc-gen-validate_\"${{ steps.get_version.outputs.VERSION }}\" \
-f protoc-gen-validate"

0 comments on commit 9d4497f

Please sign in to comment.