From 7be31e1918baa9d6b3fccd58705bd8b1751fe170 Mon Sep 17 00:00:00 2001 From: Arun Prasad Date: Sun, 5 Jan 2025 22:11:56 -0800 Subject: [PATCH] Set working directory and update token secret location --- .github/workflows/Python.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Python.yml b/.github/workflows/Python.yml index d9af3e9..ff41433 100644 --- a/.github/workflows/Python.yml +++ b/.github/workflows/Python.yml @@ -3,7 +3,7 @@ # # maturin generate-ci github # -name: CI +name: Python on: push: @@ -21,6 +21,9 @@ permissions: jobs: linux: runs-on: ${{ matrix.platform.runner }} + defaults: + run: + working-directory: ./bindings-python strategy: matrix: platform: @@ -56,6 +59,9 @@ jobs: musllinux: runs-on: ${{ matrix.platform.runner }} + defaults: + run: + working-directory: ./bindings-python strategy: matrix: platform: @@ -87,6 +93,9 @@ jobs: windows: runs-on: ${{ matrix.platform.runner }} + defaults: + run: + working-directory: ./bindings-python strategy: matrix: platform: @@ -114,6 +123,9 @@ jobs: macos: runs-on: ${{ matrix.platform.runner }} + defaults: + run: + working-directory: ./bindings-python strategy: matrix: platform: @@ -140,6 +152,9 @@ jobs: sdist: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./bindings-python steps: - uses: actions/checkout@v4 - name: Build sdist @@ -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] @@ -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-*/*