Skip to content

Commit

Permalink
Set working directory and update token secret location
Browse files Browse the repository at this point in the history
  • Loading branch information
akprasad committed Jan 6, 2025
1 parent 7cb15e5 commit 7be31e1
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# maturin generate-ci github
#
name: CI
name: Python

on:
push:
Expand All @@ -21,6 +21,9 @@ permissions:
jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand Down Expand Up @@ -56,6 +59,9 @@ jobs:

musllinux:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand Down Expand Up @@ -87,6 +93,9 @@ jobs:

windows:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand Down Expand Up @@ -114,6 +123,9 @@ jobs:

macos:
runs-on: ${{ matrix.platform.runner }}
defaults:
run:
working-directory: ./bindings-python
strategy:
matrix:
platform:
Expand All @@ -140,6 +152,9 @@ jobs:

sdist:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./bindings-python
steps:
- uses: actions/checkout@v4
- name: Build sdist
Expand All @@ -155,6 +170,9 @@ jobs:

release:
name: Release
defaults:
run:
working-directory: ./bindings-python
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
needs: [linux, musllinux, windows, macos, sdist]
Expand All @@ -175,7 +193,7 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }}
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*

0 comments on commit 7be31e1

Please sign in to comment.