-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 942 Bytes
/
autorelease.yml
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
31
32
33
34
35
name: Autorelease
on:
push:
branches:
- master
jobs:
build-binary:
runs-on: ubuntu-latest
steps:
- name: Create relase
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
stable: 'true'
go-version: '1.15.5'
- run: mkdir build -p && ls && pwd
- run: GOOS=windows GOARCH=amd64 go build -o build/dotenv-windows-amd64.exe ./cmd/dotenv/main.go
- run: go build -o build/dotenv-linux-amd64 ./cmd/dotenv/main.go
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/dotenv-*
tag: ${{ github.ref }}
overwrite: true
file_glob: true