diff --git a/.github/workflows/ci-pipeline__main.yml b/.github/workflows/ci-pipeline__main.yml new file mode 100644 index 0000000..2f4c9ed --- /dev/null +++ b/.github/workflows/ci-pipeline__main.yml @@ -0,0 +1,49 @@ +name : CI Pipeline - Main +on: + workflow_dispatch: + push: + branches: + - main + +env: + RELEASE_TYPE : 'major' + PACKAGE_NAME : 'osbot_local_stack' + +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 + + publish-to-pypi: + name: "Publish to: PYPI" + permissions: + id-token: write + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Git Update Current Branch + uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__update_branch@dev + + - name: publish-to-pypi + uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev + needs: + - increment-tag \ No newline at end of file