Skip to content

Commit

Permalink
chore: update build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Apr 16, 2024
1 parent bd047f3 commit fdb15d7
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,21 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install setuptools wheel twine
- name: Install pep517
run: >-
pip install pep517
- name: Build a binary wheel and a source tarball
run: >-
python -m
pep517.build --source --binary --out-dir dist/ .
fetch-depth: 0
- uses: actions/setup-python@v5

- name: Build SDist and wheel
run: pipx run --spec build pyproject-build

- name: Check metadata
run: pipx run twine check dist/*

- uses: actions/upload-artifact@v4
with:
path: dist/*
publish:
needs: [dist]
needs: [ dist ]
environment: pypi
permissions:
id-token: write
Expand Down

0 comments on commit fdb15d7

Please sign in to comment.