mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-25 15:52:29 -07:00
Bumps [wangyoucao577/go-release-action](https://github.com/wangyoucao577/go-release-action) from v1.14 to v1.15. - [Release notes](https://github.com/wangyoucao577/go-release-action/releases) - [Commits](https://github.com/wangyoucao577/go-release-action/compare/v1.14...1caa775ade7bd6692dd752d506f106792e76843d) Signed-off-by: dependabot[bot] <support@github.com>
31 lines
926 B
YAML
31 lines
926 B
YAML
name: Release Go Binaries
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
releases-matrix:
|
|
name: Release Go Binary
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
goos: [freebsd, linux, windows]
|
|
goarch: ["386", amd64]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set APP_VERSION env
|
|
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
|
|
- name: Set BUILD_TIME env
|
|
run: echo BUILD_TIME=$(date) >> ${GITHUB_ENV}
|
|
|
|
- uses: wangyoucao577/go-release-action@v1.15
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
goos: ${{ matrix.goos }}
|
|
goarch: ${{ matrix.goarch }}
|
|
goversion: "https://golang.org/dl/go1.15.8.linux-amd64.tar.gz"
|
|
extra_files: LICENSE README.md smtprelay.ini
|
|
ldflags: -s -w -X "main.appVersion=${{ env.APP_VERSION }}" -X "main.buildTime=${{ env.BUILD_TIME }}"
|