-
Notifications
You must be signed in to change notification settings - Fork 37
35 lines (32 loc) · 922 Bytes
/
cd.yaml
File metadata and controls
35 lines (32 loc) · 922 Bytes
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
---
name: CD
on:
push:
branches:
- main
permissions:
id-token: write
contents: write
jobs:
release-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Setting up PDM
uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
with:
python-version: "3.10"
architecture: x64
- name: Setting up nox
uses: wntrblm/nox@a74da2c766d4e656d6105639926c31f3aa4a6ca1 # 2025.02.09
with:
python-versions: "3.10"
- name: Configure Git Credentials
run: |
git config user.email "action@github.com"
git config user.name "GitHub Action"
- name: Deploy Documentation
run: |
git fetch origin gh-pages:gh-pages
nox -s docs -- deploy --update-aliases main
git push origin gh-pages