Skip to content

Beta Release - 1.0.0 #11

Beta Release - 1.0.0

Beta Release - 1.0.0 #11

Workflow file for this run

name: Release
on:
release:
types:
- published
permissions:
contents: read
jobs:
pypi-publish:
name: Publish Release
runs-on: "ubuntu-latest"
environment:
name: pypi
url: https://pypi.org/p/hexital
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install and configure Poetry
uses: snok/[email protected]
with:
version: 1.5.1
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- run: poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
- name: Build and Publish package to PyPI
run: poetry publish --build