Skip to content

Commit

Permalink
getting automatic main release set up for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
rlittlefield committed Jun 4, 2024
1 parent 80bb422 commit c2c231d
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,36 @@ jobs:
run: |
poetry install
poetry run python -m pytest
release:
name: "Build and Release"
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishin
environment:
name: release
url: https://pypi.org/p/paseto
needs:
- test
- safety-check
- lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
architecture: 'x64'
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.4
with:
poetry-version: "1.8.3"
- name: dependency checks
run: |
poetry check
- name: install dependencies
run: |
poetry install
- name: build
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c2c231d

Please sign in to comment.