Skip to content

Commit

Permalink
Fix publish (#16)
Browse files Browse the repository at this point in the history
* Add entrypoint
  • Loading branch information
t-young31 authored Aug 28, 2023
1 parent 524e5ca commit 1697940
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,24 @@ jobs:
run: |
cat <<EOF > publish.sh
#!/bin/bash
docker run --rm -v \$(pwd):/io ghcr.io/pyo3/maturin \
build --interpreter ${{ matrix.python-version }} --release --strip
docker run --rm -v \$(pwd):/io -e MATURIN_PYPI_TOKEN="\$1" \
ghcr.io/pyo3/maturin publish --interpreter ${{ matrix.python-version }} --skip-existing
cd "\${DIR:-.}" || exit
maturin build --interpreter ${{ matrix.python-version }} --release --strip
maturin publish --interpreter ${{ matrix.python-version }} --skip-existing
EOF
chmod +x publish.sh
- name: Publish optrs
run: |
./publish.sh "${{ secrets.OPT_RS_UPLOAD_TOKEN }}"
docker run --rm -v $(pwd):/io \
-e MATURIN_PYPI_TOKEN="${{ secrets.OPT_RS_UPLOAD_TOKEN }}" \
--entrypoint ./publish.sh ghcr.io/pyo3/maturin
- name: Publish optrs-api
run: |
cd api
../publish.sh "${{ secrets.OPT_RS_API_UPLOAD_TOKEN }}"
docker run --rm -v $(pwd):/io \
-e MATURIN_PYPI_TOKEN="${{ secrets.OPT_RS_API_UPLOAD_TOKEN }}" \
-e DIR="api" \
--entrypoint ./publish.sh ghcr.io/pyo3/maturin
mac:
runs-on: "macos-latest"
Expand Down

0 comments on commit 1697940

Please sign in to comment.