Skip to content

Commit

Permalink
Update pypi publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinitto committed Feb 10, 2024
1 parent 9b689f2 commit 8d6eb6c
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:

steps:
- name: Checkout the commit
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -38,17 +38,18 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
pytest
release:
docs:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: test
steps:
- name: Checkout the commit
uses: actions/checkout@v3
uses: actions/checkout@v4

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

Expand All @@ -59,11 +60,8 @@ jobs:
python --version
pip install -r requirements.txt
- name: Build
run: |
python -m build
run: python -m build
- name: Deploy docs
run: |
mkdocs gh-deploy --force
run: mkdocs gh-deploy --force
- name: Upload to pypi
run: |
twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} dist/*
run: twine upload -u __token__ -p ${{ secrets.TINI_PYPI_TOKEN }} dist/*

0 comments on commit 8d6eb6c

Please sign in to comment.