Merge pull request #241 from cwapi3d/bugfix/correct-package-version #65
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish CwAPI3D Package | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build-and-publish: | |
| name: Build and Publish | |
| runs-on: 'ubuntu-latest' | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/cwapi3d | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - run: pip install build | |
| - run: python -m build | |
| - uses: pypa/gh-action-pypi-publish@release/v1 |