-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (48 loc) · 1.4 KB
/
cd.yaml
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
47
48
49
50
51
---
name: CD
on:
push:
branches:
- main
permissions:
id-token: write
contents: write
jobs:
release-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Setting up PDM
uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4
with:
python-version: "3.10"
architecture: x64
- name: Setting up nox
uses: wntrblm/nox@5656fcedc31a1ea37d016e4d94d00185330cc528 # 2024.04.15
with:
python-versions: "3.10"
- name: Configure Git Credentials
run: |
git config user.email "[email protected]"
git config user.name "GitHub Action"
- name: Bumping version
run: |
nox -s bump -- micro
git push origin main
- name: Build artifacts
run: |
nox -s build
- name: Test Build
run: |
python -m pip install dist/*.whl
eva --version
- name: Deploy Documentation
run: |
git fetch origin gh-pages:gh-pages
nox -s docs -- deploy --update-aliases main
git push origin gh-pages
- name: Publish package distributions to PyPI
run: nox -s publish -- --no-build
env:
PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}