Skip to content

Fix release version tagging as well for PyPI #2

Fix release version tagging as well for PyPI

Fix release version tagging as well for PyPI #2

name: py:pre-release
on:
push:
tags: [ 'v*' ]
jobs:
create-pre-release:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: Get the Git tag name
id: get-tag-name
run: echo "tag-name=${GITHUB_REF/refs\/tags\/v/}"
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.get-tag-name.outputs.tag-name }}
release_name: v${{ steps.get-tag-name.outputs.tag-name }}
body: |-
"Rookify" release v${{ steps.get-tag-name.outputs.tag-name }}
prerelease: true