🏭 Cut Release #27
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: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: "Build Windows Binary" | |
run: ./buildlaunchercoreEXE.bat | |
- name: Bump Version and Push Tag | |
id: tag_version | |
uses: mathieudutour/github-tag-action@v6.1 | |
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.GITHUB_TOKEN }} | |
run: gh release edit ${{ steps.tag_version.outputs.new_tag }} --draft=false --repo ${{ github.repository }} |