-
-
Notifications
You must be signed in to change notification settings - Fork 75
32 lines (32 loc) · 1011 Bytes
/
Copy pathbinaries.yml
File metadata and controls
32 lines (32 loc) · 1011 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
31
32
name: Build binaries
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
- name: Build binaries
uses: docker/bake-action@v2
with:
targets: binaries
- name: Rename binaries
run: |
mkdir bin
mv ./out/darwin_amd64/demoit ./bin/demoit-darwin-amd64
mv ./out/darwin_arm64/demoit ./bin/demoit-darwin-arm64
mv ./out/linux_amd64/demoit ./bin/demoit-linux-amd64
mv ./out/linux_arm64/demoit ./bin/demoit-linux-arm64
- name: GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
files: bin/*
generate_release_notes: true