Skip to content

v1.3.0

v1.3.0 #8

Workflow file for this run

name: Release database node
on:
release:
types: [ created ]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: linux
steps:
- uses: actions/checkout@v3
- 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}
- name: Environment Printer
uses: managedkaos/print-env@v1.0
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
asset_name: festivals-database-node-${{ matrix.goos }}-${{ matrix.goarch }}
binary_name: "festivals-database-node"
build_flags: -v
ldflags: -X 'github.com/Festivals-App/festivals-database/server/status.ServerVersion=${{ env.APP_VERSION }}' -X 'github.com/Festivals-App/festivals-database/server/status.BuildTime=${{ env.BUILD_TIME }}' -X 'github.com/Festivals-App/festivals-database/server/status.GitRef=${{ github.ref }}'
extra_files: LICENSE README.md config_template.toml operation/service_template.service operation/update_node.sh