-
Notifications
You must be signed in to change notification settings - Fork 130
30 lines (30 loc) · 856 Bytes
/
release.yaml
File metadata and controls
30 lines (30 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Release
on:
push:
tags:
- "*.*.*"
jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Install dependencies
run: |
go install github.com/mitchellh/gox@latest
go install github.com/tcnksm/ghr@latest
- name: Add GOPATH to search path
run: echo `go env GOPATH`/bin >> $GITHUB_PATH
- name: Build
run: make all
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
- name: Create release
run: ./new_release.sh
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}