Skip to content

Commit

Permalink
Added pypi deploy and tried being explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale authored Jan 10, 2024
1 parent 5ad320a commit 61486d0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
name: build-$${{ matrix.python-version }}
path: dist/*

test:
Expand Down Expand Up @@ -133,18 +133,27 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
with:
name: deploy-pages


deploy-pypi:
environment:
name: test-pypi
url: https://test.pypi.org/p/montepy # Replace <package-name> with your PyPI project name
needs: [deploy-pages]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: pip install --user build
- run: python -m build --sdist --wheel .
- uses: actions/download-artifact@v4
with:
name: build-3.8
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1



Expand Down

0 comments on commit 61486d0

Please sign in to comment.