Skip to content

Commit

Permalink
added outputs to versioning step
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcorneliusmartin committed Mar 10, 2023
1 parent 5428b35 commit 1e8fe64
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ on:
tags:
- 'version/*.*.*'

permissions:
contents: read

jobs:

version:
name: Apply version
name: Extract version
runs-on: ubuntu-latest
steps:

Expand All @@ -38,7 +35,16 @@ jobs:
echo "stage=${PARTS2[1]}" >> $GITHUB_OUTPUT
echo "build=${PARTS2[2]}" >> $GITHUB_OUTPUT
outputs:
version: ${{ steps.split.outputs.version }}
major: ${{ steps.split.outputs.major }}
minor: ${{ steps.split.outputs.minor }}
patch: ${{ steps.split.outputs.patch }}
stage: ${{ steps.split.outputs.stage }}
build: ${{ steps.split.outputs.build }}

github-release:
name: Create GitHub Release
needs: version
runs-on: ubuntu-latest
env:
Expand All @@ -55,7 +61,7 @@ jobs:
title: "${{ env.version }}"

pypi-publish:

name: Publish to PyPi
runs-on: ubuntu-latest
needs: [version, github-release]
steps:
Expand Down

0 comments on commit 1e8fe64

Please sign in to comment.