Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Jul 5, 2024
1 parent a9e9779 commit 6dd4c9c
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,44 @@ jobs:
Build:
runs-on: ubuntu-latest
steps:
- {name: Checkout, uses: actions/checkout@v4}
- {name: Install Poetry, uses: abatilo/actions-poetry@v3}
- {name: Install Python, uses: actions/setup-python@v5, with: {python-version: "3.10", cache: poetry}}
- {name: Copy LICENSE to COPYING, run: cp --no-clobber --verbose LICENSE COPYING} # For Python wheel.
- {name: Build Package, run: make build}
- name: Checkout
uses: actions/checkout@v4
- name: Install Poetry
uses: abatilo/actions-poetry@v3
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: poetry
- name: Copy LICENSE to COPYING # For Python wheel
run: cp --no-clobber --verbose LICENSE COPYING
- name: Build Package
run: make build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with: {name: dist, path: dist, if-no-files-found: error}
with:
name: dist
path: dist
if-no-files-found: error

Publish:
needs: Build
runs-on: ubuntu-latest
steps:
- {name: Download Artifact, uses: actions/download-artifact@v4, with: {name: dist, path: dist}}
- name: Publish packages to PyPI
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Upload packages to Release
- name: Upload to Release
uses: svenstaro/upload-release-action@v2
with: {file: dist/*, file_glob: true, repo_token: "${{ secrets.GITHUB_TOKEN }}", tag: "${{ github.ref }}"}
with:
file: dist/*
file_glob: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}

0 comments on commit 6dd4c9c

Please sign in to comment.