build CLI on github actions.
This commit is contained in:
35
.github/workflows/release-cli.yml
vendored
Normal file
35
.github/workflows/release-cli.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: build cli
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
make-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- make-release
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: go build -o eventstore ./cmd/eventstore
|
||||
- uses: AButler/upload-release-assets@v2.0
|
||||
with:
|
||||
files: eventstore
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release-tag: ${{ github.ref_name }}
|
||||
Reference in New Issue
Block a user