v0.31.0 #52
Workflow file for this run
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 | |
| on: | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: build-ldp | |
| uses: hynek/build-and-inspect-python-package@v2 | |
| with: | |
| upload-name-suffix: -ldp | |
| - name: Download built artifact to dist/ | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: ${{ steps.build-ldp.outputs.artifact-name }} | |
| path: dist_ldp | |
| - name: Clean up ldp build # Work around https://github.com/hynek/build-and-inspect-python-package/issues/174 | |
| run: rm -r ${{ steps.build-ldp.outputs.dist }} | |
| - id: build-fhlmi | |
| uses: hynek/build-and-inspect-python-package@v2 | |
| with: | |
| path: packages/lmi | |
| upload-name-suffix: -fhlmi | |
| - name: Download built artifact to dist/ | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: ${{ steps.build-fhlmi.outputs.artifact-name }} | |
| path: dist_fhlmi | |
| - name: Clean up fhlmi build # Work around https://github.com/hynek/build-and-inspect-python-package/issues/174 | |
| run: rm -r ${{ steps.build-fhlmi.outputs.dist }} | |
| - uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_LDP_TOKEN }} | |
| packages-dir: dist_ldp | |
| - uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_LMI_TOKEN }} | |
| packages-dir: dist_fhlmi |