Skip to content

Merge pull request #21 from GangGreenTemperTatum/ads/eng-143-feature-… #42

Merge pull request #21 from GangGreenTemperTatum/ads/eng-143-feature-…

Merge pull request #21 from GangGreenTemperTatum/ads/eng-143-feature-… #42

Workflow file for this run

name: Build and Publish
on:
push:
branches: [ main ]
jobs:
build-and-publish:
environment: protected
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
- name: Configure local .venv
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Cache Dependencies
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1