-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.06 KB
/
cape.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
name: CAPE
on:
push:
branches: [main]
pull_request:
release:
types: [created]
permissions:
pages: write
id-token: write
jobs:
python:
name: Python
uses: cape-ph/.github/.github/workflows/poetry_python_checks.yml@sphinx
with:
pytest: true
sphinx: true
general:
name: General
uses: cape-ph/.github/.github/workflows/general_checks.yml@v1
publish:
name: Publsih to PyPI
needs: python
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
environment:
name: pypi
url: https://pypi.org/p/capepy
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
id: setup_python
with:
python-version: 3.11
cache: "poetry"
- run: poetry build
- uses: pypa/gh-action-pypi-publish@release/v1