Skip to content

Commit

Permalink
Add dry-run publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
torymur committed Feb 18, 2025
1 parent e1abbf3 commit 31d3a37
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/dry_run_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Dry-run Publish

on:
workflow_dispatch:
push:
branches: [main]
# TODO: remove
pull_request:
branches: [main]

jobs:
build_wheels:
# TODO: switch to main
uses: dottxt-ai/outlines-core/.github/workflows/build_wheels.yml@maturin

dry_run:
needs: build_wheels
name: Dry-run for publishing to 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

- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2

- name: Dry-run publish to crates.io
run: cargo publish --dry-run
8 changes: 3 additions & 5 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Release PyPi

on:
workflow_dispatch:
# release:
# types:
# - created
pull_request:
branches: [main]
release:
types:
- created

jobs:
build_wheels:
Expand Down

0 comments on commit 31d3a37

Please sign in to comment.