Draft #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish PyPi & crates.io | |
on: | |
push: | |
branches: | |
- fix_issue_publish_pypi | |
jobs: | |
build_wheels: | |
uses: dottxt-ai/outlines-core/.github/workflows/build_wheels.yml@main | |
with: | |
auto_bump: true | |
release: | |
needs: build_wheels | |
name: Publish PyPI and crates.io | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: wheels-* | |
merge-multiple: true | |
path: dist | |
- uses: actions/download-artifact@v4 | |
with: | |
name: sdist | |
path: dist | |
- name: Print directory information | |
run: | | |
pwd | |
ls -la | |
ls -la dist | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Print directory information | |
run: | | |
pwd | |
ls -la | |
ls -la dist | |
- uses: Swatinem/rust-cache@v2 | |
- name: Print directory information | |
run: | | |
pwd | |
ls -la | |
ls -la dist | |
- name: Bump version in Cargo.toml | |
uses: ./.github/actions/bump_version | |
- name: Print directory information | |
run: | | |
pwd | |
ls -la | |
ls -la dist | |
- name: Dry-run publish to crates.io | |
run: cargo publish --dry-run --allow-dirty | |
- name: Print directory information | |
run: | | |
pwd | |
ls -la | |
ls -la dist | |
- name: Publish to PyPi | |
uses: pypa/gh-action-pypi-publish@v1.4.2 | |
with: | |
user: __token__ |