Skip to content

Build & release

Build & release #2

Workflow file for this run

name: Build & release
on:
#schedule:
# - cron: '0 4,16 * * *'
workflow_dispatch:
inputs:
tag:
description: "Enter the version string (e.g. 'v4.0.0alpha'):"
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
steps:
- name: release
uses: SimWinSports/sw-create-release@v1.0.0
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_branch: main/${{ inputs.tag }}
prerelease: ${{ inputs.prerelease }}
tag: ${{ inputs.tag }}
- name: upload
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
files: ${{ needs.build.outputs.bin_path }}