Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions .github/workflows/publish_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,49 +14,23 @@ jobs:
testing:
uses: ./.github/workflows/code_test.yml

publish-test-pypi:
publish-to-pypi:
runs-on: ubuntu-latest

environment:
name: test-pypi
name: pypi

needs: testing

steps:

- &download_dist
name: Download Distributions
- name: Download Distributions
uses: actions/download-artifact@v8
with:
name: ${{ needs.testing.outputs.artifact_name }}
run-id: ${{ needs.testing.outputs.artifact_run_id }}
path: ./dist

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true

- name: Smoke Test on Test PyPI
shell: bash
run: |
sleep 60
pip install -v --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ brayer
python -c "import brayer;print(brayer.__version__)"

publish-to-pypi:
runs-on: ubuntu-latest

environment:
name: pypi

needs: testing

steps:

- *download_dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down