mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
0a7a791571
* ci: overhaul workflows * ci: some fixes
36 lines
1 KiB
YAML
36 lines
1 KiB
YAML
name: 🏭 Draft Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
bump:
|
|
description: 'Semver Bump Type'
|
|
required: true
|
|
default: 'patch'
|
|
type: choice
|
|
options:
|
|
- patch
|
|
- minor
|
|
- major
|
|
|
|
jobs:
|
|
cut-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Docs - https://github.com/mathieudutour/github-tag-action
|
|
# Workflows cannot trigger other workflows implicitly
|
|
# - https://github.community/t/github-actions-workflow-not-triggering-with-tag-push/17053/7
|
|
- name: Bump Version and Push Tag
|
|
if: github.repository == 'open-goal/jak-project'
|
|
id: tag_version
|
|
uses: mathieudutour/github-tag-action@v6.0
|
|
with:
|
|
github_token: ${{ secrets.BOT_PAT }}
|
|
tag_prefix: v
|
|
default_bump: ${{ github.event.inputs.bump }}
|
|
|
|
- name: Create Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
|
|
run: gh release create ${{ steps.tag_version.outputs.new_tag }} --generate-notes --draft --repo open-goal/jak-project
|