-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (37 loc) · 1.24 KB
/
build_and_release.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
name: 🚀 Build and release
on:
push:
branches:
- main
paths:
- strapi_client/**
- pyproject.toml
- .github/**
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: ⚙️ Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: 🔃 Checkout code
uses: actions/checkout@v2
- name: 📦 Install poetry
run: pip install poetry
- name: 📖 Generate docs
run: |
poetry install
poetry run lazydocs --validate strapi_client --overview-file README.md
- name: ⬆️ Commit generated docs
uses: EndBug/add-and-commit@v7
with:
add: docs
message: "doc: update"
committer_name: GitHub Actions
committer_email: [email protected]
- name: 📢 Semantic Release
uses: bjoluc/semantic-release-config-poetry@v2
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}