Skip to content

Trigger release

Trigger release #19

Workflow file for this run

name: Trigger release
on:
workflow_dispatch:
inputs:
tag:
required: true
description: release version
generate-changelogs:
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
# go away windows
os:
- darwin
- linux
arch:
- amd64
- arm64
steps:
- uses: actions/checkout@v3
- run: |
CGO_ENABLED=0 GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-X 'github.com/debdutdeb/node-proxy/versions.Version=${{inputs.tag}}' -X 'github.com/debdutdeb/node-proxy/versions.BuildTime=$(date -u)' -X 'github.com/debdutdeb/node-proxy/versions.GitCommit=${{github.sha}}' -extldflags '-static'" -o novm-${{matrix.os}}-${{matrix.arch}} .
shell: bash
- uses: softprops/action-gh-release@0bd7e8b279c9b5b36661d552472fbbfe671fe26e
with:
files: novm-${{matrix.os}}-${{matrix.arch}}
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ inputs.tag }}
tag_name: ${{ inputs.tag }}
draft: false
fail_on_unmatched_files: true
target_commitish: ${{ github.sha }}
generate_release_notes: ${{ inputs.generate-changelogs }}