Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #91 from kintone-labs/SSR-1759
Browse files Browse the repository at this point in the history
Create release.yml
  • Loading branch information
josh-vo authored Oct 12, 2021
2 parents 5e3b037 + 1febb41 commit c01d422
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
release:
types: [created]

jobs:
Release:
name: Release for ${{ matrix.os }}
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- os: linux-amd64
goos_name: linux
goarch_name: amd64
artifact_name: linux-x64
bin_name: cli-kintone
- os: darwin-amd64
goos_name: darwin
goarch_name: amd64
artifact_name: macos-x64
bin_name: cli-kintone
- os: windows-amd64
goos_name: windows
goarch_name: amd64
artifact_name: windows-x64
bin_name: cli-kintone.exe
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.15.7'
- name: Preparation
run: |
go vet -x ./...
- name: Build ${{ matrix.goos_name }}/${{ matrix.goarch_name }} archive
run: |
export GOOS="${{ matrix.goos_name }}"
export GOARCH="${{ matrix.goarch_name }}"
go build -v -tags "forceposix" -o build/${{ matrix.artifact_name }}/${{ matrix.bin_name }}
zip ${{ matrix.artifact_name }}.zip build/${{ matrix.artifact_name }}/${{ matrix.bin_name }}
- name: Upload package to release[binaries]
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.CLI_KINTONE_WORKFLOW_TOKEN }}
file: ${{ matrix.artifact_name }}.zip
asset_name: ${{ matrix.artifact_name }}.zip
tag: ${{ github.ref }}
overwrite: true

0 comments on commit c01d422

Please sign in to comment.