authorizer/.github/workflows/release.yaml
2021-09-11 11:32:59 +05:30

29 lines
881 B
YAML

on:
release:
types: [created]
jobs:
releases-windows:
name: Release Authorizer Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [windows]
goarch: [amd64]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install build-essential mingw-w64
- name: Set VERSION env
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
- name: Set GO env
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
- uses: wangyoucao577/go-release-action@v1.20
with:
github_token: ${{ secrets.RELEASE_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: make clean && make
md5sum: FALSE
extra_files: .env.sample app build template