mirror of
https://github.com/PCSX2/web-api.git
synced 2026-01-31 01:15:16 +01:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: 🏭 Draft Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
bump:
|
|
description: 'Semver Bump Type'
|
|
required: true
|
|
default: 'patch'
|
|
type: choice
|
|
options:
|
|
- patch
|
|
- minor
|
|
- major
|
|
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
IMAGE_NAME: ${{ github.repository }}
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
cut_release:
|
|
if: github.repository == 'PCSX2/web-api'
|
|
name: Cut Release
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
new_tag: ${{ steps.set_tag.outputs.new_tag }}
|
|
steps:
|
|
# Docs - https://github.com/mathieudutour/github-tag-action
|
|
- name: Bump Version and Push Tag
|
|
id: tag_version
|
|
uses: mathieudutour/github-tag-action@v6.2
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
tag_prefix: v
|
|
default_bump: ${{ github.event.inputs.bump }}
|
|
|
|
- name: Create Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: gh release create ${{ steps.tag_version.outputs.new_tag }} --generate-notes --repo ${{ github.repository }}
|
|
|
|
- name: Output new tag
|
|
id: set_tag
|
|
run: |
|
|
echo "new_tag=${{ steps.tag_version.outputs.new_tag }}" >> $GITHUB_OUTPUT |