Skip to content

Commit

Permalink
poetry publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengrui-Liu committed May 11, 2023
1 parent 7d4ea72 commit d2e38f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,13 @@ permissions:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Install twine to check the package
run: pip install twine
- name: Check the package
run: twine check dist/*
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
- uses: actions/checkout@v3
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
user: __token__
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
poetry-version: ["1.4.2"]
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit d2e38f4

Please sign in to comment.