Skip to content

bump gensim

bump gensim #95

Workflow file for this run

name: graspologic Publish
on:
#
# When a release tag is created (e.g. v1.0.0), this workflow will be triggered. The `poetry dynamic-version` plugin will use the correct version tag.
#
release:
types: [created]
#
# On pushes to main and dev, a prerelease version will be cut for the branch. e.g. v1.0.0-pre.10+<hash>
#
push:
paths-ignore:
- '.all-contributorsrc'
- 'CONTRIBUTORS.md'
branches:
- 'main'
- 'dev'
env:
PYTHON_VERSION: '3.10'
POETRY_VERSION: '1.8.3'
jobs:
build:
uses: ./.github/workflows/build.yml
publish:
runs-on: ubuntu-latest
needs: build
if: github.ref=='refs/heads/main' || github.ref=='refs/heads/dev'
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: $POETRY_VERSION
- name: Add poetry-dynamic-versioning plugin
run: poetry self add "poetry-dynamic-versioning[plugin]"
- name: Install dependencies
run: poetry install
- name: Export Publication Version
run: echo "version=`poetry version --short`" >> $GITHUB_OUTPUT
- name: Build Artifacts
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
skip-existing: true
verbose: true
docsite:
runs-on: ubuntu-latest
needs: [publish, build]
if: github.ref=='refs/heads/main' || github.ref=='refs/heads/dev'
permissions:
id-token: write
contents: write
steps:
- name: Download documentation artifact
uses: actions/download-artifact@v4
with:
name: documentation-site
path: docs/documentation-site
- name: Publish reference docs (dev branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/dev'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: pre-release
- name: Publish reference docs (main branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: ${{ needs.publish.outputs.version }}
- name: Publish latest reference docs (main branch)
uses: peaceiris/actions-gh-pages@v3
if: github.ref=='refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/documentation-site
destination_dir: latest