🏭 Cut Release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🏭 Cut Release | |
on: | |
workflow_dispatch: | |
inputs: | |
bump: | |
description: 'Version Bump' | |
required: true | |
default: 'patch' | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
cut-release: | |
runs-on: windows-latest | |
steps: | |
- name: "Checkout Repository" | |
uses: actions/checkout@v3 | |
- name: "Build Windows Binary" | |
run: ./buildlaunchercoreEXE.bat | |
- name: Bump Version and Push Tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
tag_prefix: v | |
default_bump: ${{ inputs.bump }} | |
append_to_pre_release_tag: "" | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release create ${{ steps.tag_version.outputs.new_tag }} --generate-notes --draft --repo ${{ github.repository }} | |
- name: Upload Assets | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release upload "${{ steps.tag_version.outputs.new_tag }}" ${{ github.WORKSPACE }}/openGOALModLauncher.exe --repo ${{ github.repository }} --clobber | |
- name: Publish Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.token }} | |
run: gh release edit ${{ steps.tag_version.outputs.new_tag }}} --draft=false --repo ${{ github.repository }} |