Skip to content

Commit

Permalink
Fix working directory in GitHub workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Oct 31, 2023
1 parent 9e60ae3 commit 135cfc3
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/secrets-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ on:
pull_request:
workflow_dispatch:

defaults:
run:
working-directory: packages/secrets/src/keyring

permissions:
contents: read

Expand All @@ -40,11 +36,12 @@ jobs:
args: --release --out dist --find-interpreter
sccache: "true"
manylinux: auto
working-directory: packages/secrets/src/keyring
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
path: packages/secrets/src/keyring/dist

windows:
runs-on: windows-latest
Expand All @@ -63,11 +60,12 @@ jobs:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
working-directory: packages/secrets/src/keyring
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
path: packages/secrets/src/keyring/dist

macos:
runs-on: macos-latest
Expand All @@ -85,11 +83,12 @@ jobs:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
working-directory: packages/secrets/src/keyring
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
path: packages/secrets/src/keyring/dist

sdist:
runs-on: ubuntu-latest
Expand All @@ -100,25 +99,27 @@ jobs:
with:
command: sdist
args: --out dist
working-directory: packages/secrets/src/keyring
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
path: packages/secrets/src/keyring/dist

release:
name: Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *
# release:
# name: Release
# runs-on: ubuntu-latest
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
# needs: [linux, windows, macos, sdist]
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: wheels
# - name: Publish to PyPI
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# command: upload
# args: --non-interactive --skip-existing *
# working-directory: packages/secrets/src/keyring

0 comments on commit 135cfc3

Please sign in to comment.