Skip to content

Commit

Permalink
add github actions to generates cross-platform executable files
Browse files Browse the repository at this point in the history
  • Loading branch information
kpym committed Oct 10, 2020
1 parent f8c7eb7 commit 30c1a8c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# workflow name
name: release

# on events
on:
release:
types:
- created

# jobs
jobs:
# generate build cross-platform build files
generate:
name: Generate cross-platform builds
runs-on: ubuntu-latest
steps:
# step 1: checkout repository code
- name: Checkout the repository
uses: actions/checkout@v2

# step 2: generate build files
- name: Generate build files
uses: thatisuday/go-build-action@v1
with:
platforms: "linux/amd64, darwin/amd64, windows/amd64"
name: "urlencode"
compress: "true"
dest: "dist"

# step 3: upload build-artifacts
- name: Upload build-artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "./dist/*.tar.gz"

0 comments on commit 30c1a8c

Please sign in to comment.