⬆️ Upgrade to EDC 0.6.0 #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish edcpy | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: edcpy | |
env: | |
PYPI_PROJECT_NAME: edcpy | |
PYTHON_VERSION: "3.8" | |
POETRY_VERSION: "1.5.1" | |
jobs: | |
build-publish: | |
name: Build and publish edcpy to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/${{ env.PYPI_PROJECT_NAME }} | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Setup Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- name: Poetry install & build | |
run: | | |
poetry install | |
poetry build | |
- name: Publish package distributions to PyPI | |
uses: pypa/[email protected] | |
with: | |
skip-existing: true | |
packages-dir: edcpy/dist/ | |
verbose: true |