Skip to content

Commit 9fa95fc

Browse files
committed
2 parents be59846 + ca89946 commit 9fa95fc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/go.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
# workflow name
5+
name: Generate release-artifacts
6+
7+
# on events
8+
on:
9+
release:
10+
types:
11+
- created
12+
13+
# workflow tasks
14+
jobs:
15+
generate:
16+
name: Generate cross-platform builds
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout the repository
20+
uses: actions/checkout@v2
21+
- name: Generate build files
22+
uses: thatisuday/go-cross-build@v1
23+
with:
24+
platforms: 'linux/amd64, linux/arm64, darwin/arm64, darwin/amd64, windows/amd64'
25+
package: 'main'
26+
name: 'image-compressor-api'
27+
compress: 'true'
28+
dest: 'dist'

0 commit comments

Comments
 (0)