Skip to content

Commit

Permalink
Merge the CICD and release workflow + fix scheduled execution (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Mar 12, 2024
1 parent e501efd commit e5b13d0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 146 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ on:
- "**"
schedule:
- cron: "24 7 */7 * *"
release:
types: [created]

concurrency:
group: CICD-${{ github.ref }}
Expand Down Expand Up @@ -160,7 +162,11 @@ jobs:
## a regular commit/push.
##
UploadTestPyPI:
if: success() && github.actor == 'btschwertfeger' && github.ref == 'refs/heads/master'
if: |
success() &&
github.actor == 'btschwertfeger' &&
github.ref == 'refs/heads/master' &&
github.event_name == 'push'
needs:
- Test-Spot-Public
- Test-Spot-Private
Expand All @@ -173,11 +179,30 @@ jobs:
secrets:
API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}

## ===========================================================================
## Upload the python-kraken-sdk to Production PyPI
##
UploadPyPI:
if: |
success() &&
github.actor == 'btschwertfeger' &&
github.event_name == 'release'
needs: [UploadTestPyPI]
name: Upload the current release to PyPI
uses: ./.github/workflows/_pypi_publish.yaml
with:
REPOSITORY_URL: https://upload.pypi.org/legacy/
secrets:
API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

## ===========================================================================
## Generates and uploads the coverage statistics to codecov
##
CodeCov:
if: success() && github.actor == 'btschwertfeger'
if: |
success() &&
github.actor == 'btschwertfeger' &&
github.event_name == 'push'
needs:
- Test-Spot-Public
- Test-Spot-Private
Expand Down
144 changes: 0 additions & 144 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit e5b13d0

Please sign in to comment.