Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/pip-bootstrap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require-hashes
--only-binary=:all:
pip==26.2.2 --hash=sha256:fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
- uses: actions/setup-python@v6
with:
python-version: '3.13'
- run: python -m pip install --no-cache-dir -r .github/pip-bootstrap.txt
- run: pip install maturin
- run: maturin build --release --locked --manifest-path python/Cargo.toml --out dist
- run: pip install --no-index --find-links dist firecrawl-anydoc
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ jobs:
if: runner.os != 'Linux'
with:
python-version: '3.13'
- name: Bootstrap pip
if: runner.os != 'Linux'
run: python -m pip install --no-cache-dir -r .github/pip-bootstrap.txt
- uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
Expand Down Expand Up @@ -424,16 +427,24 @@ jobs:
contents: read
id-token: write # PyPI trusted publishing
steps:
- uses: actions/checkout@v7
if: github.event_name == 'workflow_dispatch'
- uses: actions/download-artifact@v8
with:
pattern: wheels-*
path: dist
merge-multiple: true
- uses: actions/setup-python@v6
if: github.event_name == 'workflow_dispatch'
with:
python-version: '3.13'
- name: Check distributions (dry run)
if: github.event_name == 'workflow_dispatch'
run: |
ls -l dist
pipx run twine check dist/*
python -m pip install --no-cache-dir -r .github/pip-bootstrap.txt
python -m pip install twine
python -m twine check dist/*
- name: Publish
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down