Skip to content

Commit

Permalink
updated CI pipeline to publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Feb 2, 2025
1 parent 7c7bea9 commit 152a133
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci-pipeline__dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ on:
env:
GIT__BRANCH : 'dev'
RELEASE_TYPE : 'minor'
PACKAGE_NAME : 'mgraph_ai'
PACKAGE_NAME : 'mgraph_db'

jobs:

run-tests:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "run-tests"
uses: ./.github/actions/run-tests

increment-tag:
name: Increment Tag - DEV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increment Tag
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
with:
release_type: ${{ env.RELEASE_TYPE }}
needs:
- run-tests
# run-tests:
# name: "Run tests"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: "run-tests"
# uses: ./.github/actions/run-tests
#
# increment-tag:
# name: Increment Tag - DEV
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Increment Tag
# uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
# with:
# release_type: ${{ env.RELEASE_TYPE }}
# needs:
# - run-tests

publish-to-pypi:
if: False
#if: False
name: "Publish to: PYPI"
permissions:
id-token: write
Expand All @@ -47,5 +47,5 @@ jobs:

- name: publish-to-pypi
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev
needs:
- increment-tag
# needs:
# - increment-tag
42 changes: 21 additions & 21 deletions .github/workflows/ci-pipeline__main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ env:

jobs:

# run-tests:
# name: "Run tests"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: "run-tests"
# uses: ./.github/actions/run-tests
#
# increment-tag:
# name: Increment Tag - Main
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Increment Tag
# uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
# with:
# release_type: ${{ env.RELEASE_TYPE }}
# needs:
# - run-tests
run-tests:
name: "Run tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "run-tests"
uses: ./.github/actions/run-tests

increment-tag:
name: Increment Tag - Main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Increment Tag
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
with:
release_type: ${{ env.RELEASE_TYPE }}
needs:
- run-tests

publish-to-pypi:
#if: False
Expand All @@ -47,5 +47,5 @@ jobs:

- name: publish-to-pypi
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev
# needs:
# - increment-tag
needs:
- increment-tag

0 comments on commit 152a133

Please sign in to comment.