Merge pull request #17 from netboxlabs/develop #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Python SDK - Release" | |
on: | |
workflow_dispatch: | |
push: | |
branches: [release] | |
paths: | |
- "diode-sdk-python/**" | |
env: | |
GH_TOKEN: ${{ secrets.ORB_CI_GH_TOKEN }} | |
SEMANTIC_RELEASE_PACKAGE: ${{ github.repository }} | |
APP_DIR: diode-sdk-python | |
jobs: | |
get-next-version: | |
uses: netboxlabs/diode/.github/workflows/reusable_semantic_release_get_next_version.yaml@develop | |
with: | |
# passed vars need hard coding - https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations | |
app_name: diode-sdk-python | |
app_dir: diode-sdk-python | |
secrets: inherit | |
build: | |
name: Build | |
needs: [get-next-version] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.APP_DIR }} | |
env: | |
BUILD_VERSION: ${{ needs.get-next-version.outputs.new-release-version }} | |
BUILD_TRACK: release | |
BUILD_COMMIT: ${{ needs.get-next-version.outputs.short-sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
# | |
# do the build and inject versions here | |
# | |
# - name: Upload Github build artifact | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: build-production.zip | |
# path: services/controlplane/signup-ui/build-production.zip | |
# retention-days: 1 | |
# if-no-files-found: error | |
semantic-release: | |
uses: netboxlabs/diode/.github/workflows/reusable_semantic_release.yaml@develop | |
needs: [build] | |
with: | |
app_dir: diode-sdk-python | |
secrets: inherit | |
# upload to Docker hub / GHCR / PyPi here |