Skip to content

Commit

Permalink
with dist at path
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Jul 24, 2024
1 parent 34c405a commit dcf927b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,21 +231,15 @@ jobs:
# asset_path: packages/opal-server/dist/*
# asset_name: opal-server-${{ github.event.release.tag_name }}.zip
# asset_content_type: application/zip

- name: Remove unwanted files before publishing
run: |
cd packages/opal-common/ ; rm -rf build/
cd ../opal-client/ ; rm -rf build/
cd ../opal-server/ ; rm -rf build/

# Publish package distributions to PyPI
- 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 }}
password: ${{ secrets.TEST_PYPI_TOKEN }}
packages-dir: packages/opal-common/
packages-dir: packages/opal-common/dist/
repository-url: https://test.pypi.org/test-opal-common/
# env:
# name: pypi
Expand All @@ -257,7 +251,7 @@ jobs:
with:
# password: ${{ secrets.PYPI_TOKEN }}
password: ${{ secrets.TEST_PYPI_TOKEN }}
packages-dir: packages/opal-client/
packages-dir: packages/opal-client/dist/
repository-url: https://test.pypi.org/test-opal-client/
# env:
# name: pypi
Expand All @@ -269,7 +263,7 @@ jobs:
with:
# password: ${{ secrets.PYPI_TOKEN }}
password: ${{ secrets.TEST_PYPI_TOKEN }}
packages-dir: packages/opal-server/
packages-dir: packages/opal-server/dist/
repository-url: https://test.pypi.org/test-opal-server/
# env:
# name: pypi
Expand Down

0 comments on commit dcf927b

Please sign in to comment.