Skip to content

Commit a5b3c06

Browse files
author
Sd416
committed
Added release.yml
1 parent 1518121 commit a5b3c06

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Release Go Binary
33
on:
44
release:
55
types: [created]
6+
workflow_dispatch:
67

78
permissions:
89
contents: write
@@ -28,13 +29,13 @@ jobs:
2829
- name: Set Up Go
2930
uses: actions/setup-go@v4
3031
with:
31-
go-version: "1.23"
32+
go-version: "1.20" # Specify Go version
3233

3334
- name: Build Go Binary
3435
run: |
35-
GOOS=darwin GOARCH=amd64 go build -o file-encryptor-darwin-amd64 ./cmd/file-encryptor
36-
37-
- name: Upload Binaries
36+
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o file-encryptor-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/file-encryptor
37+
38+
- name: Upload Release Assets
3839
uses: softprops/action-gh-release@v1
3940
with:
4041
files: |

0 commit comments

Comments
 (0)