Skip to content

Commit

Permalink
👷 Add Action to build and publish edcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
agmangas committed Jul 14, 2023
1 parent b419e3a commit 3428d30
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/edcpy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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: dist/
verbose: true

0 comments on commit 3428d30

Please sign in to comment.