Skip to content

Build & release

Build & release #4

Workflow file for this run

name: Build & release
on:
#schedule:
# - cron: '0 4,16 * * *'
workflow_dispatch:
inputs:
tag:
description: "The version string (e.g. 'v4.0.0-alpha.1'):"
required: true
type: string
prerelease:
description: "Check if pre-release"
required: true
type: boolean
jobs:
build:
uses: ./.github/workflows/build-branch.yml
with:
branch: main
release:
runs-on: ubuntu-latest
needs: build
environment: build
permissions:
contents: write
steps:
- name: release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
prerelease: ${{ inputs.prerelease }}
files: ${{ needs.build.outputs.bin_path }}