Skip to content

Commit

Permalink
added ci-pipeline__main
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Oct 1, 2024
1 parent e5efc66 commit a258f9c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-pipeline__dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ jobs:

- name: publish-to-pypi
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__publish@dev
#needs:
# - increment-tag
needs:
- increment-tag
53 changes: 53 additions & 0 deletions .github/workflows/ci-pipeline__main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name : CI Pipeline - PROD
on:
workflow_dispatch:
push:
branches:
- main

env:
RELEASE_TYPE: 'major'

jobs:

run-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Poetry - Install Dependencies
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__install@dev
with:
pip_install: '-r requirements-test.txt'
- name: Run Unit Tests (using Poetry)
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/poetry__run-unit-tests@dev

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

publish-to-pypi:
#if: False
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

0 comments on commit a258f9c

Please sign in to comment.