Skip to content

Commit

Permalink
Merge pull request #5 from netboxlabs/develop
Browse files Browse the repository at this point in the history
Release: diode-sdk-python
  • Loading branch information
mfiedorowicz authored Jun 6, 2024
2 parents a7db314 + 26bc035 commit 0ff9627
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ env:
PYTHON_PACKAGE_NAME: netboxlabs-diode-sdk

jobs:
get-python-package-name:
name: Get Python package name
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Python package name
id: python-package-name
run: echo "python-package-name=${{ env.PYTHON_PACKAGE_NAME }}" >> "$GITHUB_OUTPUT"
outputs:
python-package-name: ${{ steps.python-package-name.outputs.python-package-name }}

get-next-version:
name: Semantic release get next version
runs-on: ubuntu-latest
Expand Down Expand Up @@ -111,7 +123,7 @@ jobs:

build:
name: Build
needs: [ get-next-version ]
needs: [ get-python-package-name, get-next-version ]
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
Expand All @@ -121,7 +133,7 @@ jobs:
BUILD_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
BUILD_TRACK: release
BUILD_COMMIT: ${{ needs.get-next-version.outputs.short-sha }}
OUTPUT_FILENAME: ${{ env.PYTHON_PACKAGE_NAME }}-${{ needs.get-next-version.outputs.new-release-version }}.tar.gz
OUTPUT_FILENAME: ${{ needs.get-python-package-name.outputs.python-package-name }}-${{ needs.get-next-version.outputs.new-release-version }}.tar.gz
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
Expand Down

0 comments on commit 0ff9627

Please sign in to comment.