Skip to content

Commit 27a5a79

Browse files
fix: separate workflow for release
1 parent 2bc5d7b commit 27a5a79

3 files changed

Lines changed: 38 additions & 35 deletions

File tree

.github/workflows/binaries.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,3 @@ jobs:
2525

2626
- name: Test
2727
run: go test -v ./...
28-
29-
trigger-binaries:
30-
needs: build-go
31-
if: startsWith(github.ref, 'refs/tags/v')
32-
uses: ./.github/workflows/binaries.yml
33-
secrets: inherit
34-
35-
trigger-docker-build:
36-
needs: build-go
37-
if: startsWith(github.ref, 'refs/tags/v')
38-
uses: ./.github/workflows/docker.yml
39-
secrets: inherit
Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
1-
name: Build and Push Docker Image to GHCR
1+
name: Release
22

33
on:
4-
workflow_call:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
workflow_dispatch:
58

69
jobs:
7-
build-and-push:
10+
release-binaries:
11+
name: Generate cross-platform builds
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout the repository
15+
uses: actions/checkout@v4
16+
17+
- name: Generate build files
18+
uses: thatisuday/go-cross-build@v1
19+
with:
20+
platforms: |
21+
linux/amd64,
22+
linux/386,
23+
linux/ppc64,
24+
linux/ppc64le,
25+
linux/mips64,
26+
linux/mips64le,
27+
darwin/amd64,
28+
windows/amd64,
29+
windows/386,
30+
freebsd/amd64,
31+
netbsd/amd64,
32+
openbsd/amd64,
33+
dragonfly/amd64,
34+
plan9/amd64,
35+
plan9/386,
36+
solaris/amd64
37+
package: ""
38+
name: "pulse-bridge"
39+
compress: "false"
40+
dest: "dist"
41+
42+
build-and-push-docker-image:
843
runs-on: ubuntu-latest
944

1045
permissions:

0 commit comments

Comments
 (0)