-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (42 loc) · 1.04 KB
/
edcpy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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