Skip to content

Create draft release #15

Create draft release

Create draft release #15

Workflow file for this run

name: Create draft release
on:
workflow_dispatch:
inputs:
version:
required: true
description: Version number without "v" tag prefix (i.e. "1.0.0")
jobs:
create-release-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- run: |
python .github/workflows/draft-release/set-version.py ${{ github.event.inputs.version }}
- uses: EndBug/[email protected]
id: create-release-commit
with:
message: 'chore: release version ${{ github.event.inputs.version }}'
- run: |
python .github/workflows/draft-release/set-version-post0.py ${{ github.event.inputs.version }}
- uses: EndBug/[email protected]
with:
message: 'chore: new development version ${{ github.event.inputs.version }}.post0'
- run: |
python .github/workflows/draft-release/extract-changes.py ${{ github.event.inputs.version }} > release-changes.txt
- uses: softprops/[email protected]
with:
name: ${{ github.event.inputs.version }}
tag_name: v${{ github.event.inputs.version }}
target_commitish: ${{ steps.create-release-commit.outputs.commit_long_sha }}
draft: true
generate_release_notes: true
body_path: release-changes.txt