-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reraise exceptions when used as context manager Moved to PEP compatible build system
- Loading branch information
Showing
5 changed files
with
71 additions
and
1,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,30 @@ on: | |
|
||
jobs: | ||
publish_pypi: | ||
runs-on: ubuntu-latest | ||
name: Push python package to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/aiotdlib | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Check out the repo | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build and publish to pypi | ||
uses: JRubics/[email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
pypi_token: ${{ secrets.PYPI_API_TOKEN }} | ||
ignore_dev_requirements: true | ||
python_version: 3.9 | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
|
||
- name: pypi-publish | ||
uses: pypa/[email protected] |
Oops, something went wrong.