Skip to content

🏭 Cut Release

🏭 Cut Release #27

Workflow file for this run

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 }}