Skip to content

Commit 06da85d

Browse files
authored
Create create-binaries.yml
1 parent a417c47 commit 06da85d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/create-binaries.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
pre-release:
8+
name: Pre Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get current date
12+
id: date
13+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
14+
- name: Checkout the repository
15+
uses: actions/checkout@v2
16+
- name: Generate build files
17+
uses: thatisuday/go-cross-build@v1
18+
with:
19+
platforms: 'linux/amd64, linux/arm, linux/arm64, windows/amd64, darwin/amd64'
20+
package: ''
21+
name: commitlog
22+
compress: 'true'
23+
dest: dist
24+
- uses: marvinpinto/action-automatic-releases@latest
25+
with:
26+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
27+
automatic_release_tag: nightly-${{ steps.date.outputs.date }}
28+
prerelease: true
29+
title: "Nightly Build ${{ steps.date.outputs.date }}"
30+
files: dist/*

0 commit comments

Comments
 (0)