Skip to content

Commit

Permalink
if condition added
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Jul 22, 2024
1 parent 0b601ad commit 7d01199
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ jobs:
permitio/opal-server:${{ env.opal_version_tag }}
- name: Python setup
if: github.event_name == 'release' && github.event.action == 'created'
uses: actions/setup-python@v5
with:
python-version: '3.11.8'
Expand All @@ -192,6 +193,7 @@ jobs:
git commit -m "Bump version to ${version_tag}"
- name: Cleanup setup.py and Build every sub-packages
if: github.event_name == 'release' && github.event.action == 'created'
run: |
pip install wheel
cd packages/opal-common/ ; rm -rf *.egg-info build/ dist/
Expand All @@ -205,24 +207,28 @@ jobs:
cd ../..
- name: Publish package distributions to PyPI - Opal-Common
if: github.event_name == 'release' && github.event.action == 'created'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
packages-dir: packages/opal-common/

- name: Publish package distributions to PyPI - Opal-Client
if: github.event_name == 'release' && github.event.action == 'created'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
packages-dir: packages/opal-client/

- name: Publish package distributions to PyPI - Opal-Server
if: github.event_name == 'release' && github.event.action == 'created'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
packages-dir: packages/opal-server/

- name: Push changes of __packaging__.py to GitHub
if: github.event_name == 'release' && github.event.action == 'created'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN_GITHUB }}
Expand Down

0 comments on commit 7d01199

Please sign in to comment.