Skip to content

Parallel Processing of Colbert Reranker (#378) #2

Parallel Processing of Colbert Reranker (#378)

Parallel Processing of Colbert Reranker (#378) #2

Workflow file for this run

name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
branches:
- main
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
# retrieve your distributions here
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Check for VERSION file change
id: version_changed
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep 'VERSION'; then
echo "::set-output name=changed::true"
fi
- name: Build
if: steps.version_changed.outputs.changed == 'true'
run: |
python -m build
- name: Publish package distributions to PyPI
if: steps.version_changed.outputs.changed == 'true'
uses: pypa/gh-action-pypi-publish@release/v1