Update release.yml

This commit is contained in:
Shunsuke Shibayama 2024-04-30 01:00:57 +09:00
parent f24a10f30d
commit fc26c8578c
1 changed files with 27 additions and 4 deletions

View File

@ -26,7 +26,7 @@ jobs:
cargo login ${{ secrets.CARGO_TOKEN }}
chmod +x cargo_publish.sh
./cargo_publish.sh --cargo-only
pypi:
make-pypi-artifacts:
strategy:
matrix:
include:
@ -62,12 +62,35 @@ jobs:
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
rustup show
# CIBW_BUILD_VERBOSITY: 1
- name: upload
run: |
twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/*
# - name: upload
# run: |
# twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/*
# cargo build --release --target ${{ matrix.target }}
# python3 -m build --wheel
# maturin publish -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --target ${{ matrix.target }} --skip-existing
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.platform }}
path: dist
publish-pypi-artifacts:
needs: make-pypi-artifacts
runs-on: ubuntu-latest
permissions:
# For pypi trusted publishing
id-token: write
steps:
- name: download-artifacts
uses: actions/download-artifact@v4
with:
pattern: dist-*
path: dist
merge-multiple: true
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
verbose: true
upload-assets:
needs: create-release
strategy: