-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (30 loc) · 938 Bytes
/
publish.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
name: publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-20.04
permissions:
id-token: write
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install package for testing
run: |
pip install -e .
- name: Minimal test
run: |
jncep --help
- name: Install dev dependencies
run: |
pip install -r requirements-dev.txt
- name: Build pip package
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1