Skip to content

0.3.4

0.3.4 #10

Workflow file for this run

name: Upload PLS-CLI
on:
release:
types: [ published ]
permissions:
contents: read
jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Poetry 📦️
uses: abatilo/actions-poetry@v2
- name: Config poetry ⚙️
run : |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- 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
- name: Build 🏗
run: poetry build
- name: Publish to Pypi 📤
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}