Skip to content

Commit

Permalink
Create action go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwebdev authored Dec 3, 2023
1 parent adfaa66 commit ca89946
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

# workflow name
name: Generate release-artifacts

# on events
on:
release:
types:
- created

# workflow tasks
jobs:
generate:
name: Generate cross-platform builds
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Generate build files
uses: thatisuday/go-cross-build@v1
with:
platforms: 'linux/amd64, linux/arm64, darwin/arm64, darwin/amd64, windows/amd64'
package: 'main'
name: 'image-compressor-api'
compress: 'true'
dest: 'dist'

0 comments on commit ca89946

Please sign in to comment.