Skip to content

change cmem-plugin-base to >=3.1.0,<5.0.0 #8

change cmem-plugin-base to >=3.1.0,<5.0.0

change cmem-plugin-base to >=3.1.0,<5.0.0 #8

Workflow file for this run

---
name: publish
on:
push:
tags: # trigger the deploy job on tag creation
- "*" # Note: not all tags will result in allowed pypi version identifier
workflow_dispatch: # allows for manual trigger
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install Task
uses: arduino/setup-task@v1
- name: Set up python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install and configure poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dynamic versioning plugin
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Load cached venv if cache exists
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Publish Package
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi "$PYPI_TOKEN"
poetry publish --build