Skip to content

Commit

Permalink
update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arogozhnikov committed Feb 28, 2024
1 parent fcd3e38 commit 9d19b60
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish
name: Deploy to pypi

on:
release:
Expand All @@ -9,20 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install dependencies
run: |
pip install .
- name: Publish to PyPi
pip install . && pip install hatch
- name: Publish einops to PyPi
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
HATCH_INDEX_USER: "__token__"
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
run: |
source deploy_to_pypi.sh
hatch run pypi:deploy

0 comments on commit 9d19b60

Please sign in to comment.