-
Notifications
You must be signed in to change notification settings - Fork 29
75 lines (64 loc) · 2.38 KB
/
version.yml
File metadata and controls
75 lines (64 loc) · 2.38 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Semantic Release
on:
workflow_dispatch:
jobs:
update_doc:
name: Generate API Reference Documents.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: "./.github/actions/poetry_setup"
with:
python-version: 3.10
poetry-version: "1.5.1"
install-command: |
echo "Installing dependencies with poetry..."
poetry install --with doc
- name: Generate docs
run: |
rm -rf docs/api
poetry run pdoc codedog \
-o ./docs/api \
-e codedog=https://github.com/codedog-ai/codedog/blob/master/codedog/ \
--favicon https://raw.githubusercontent.com/codedog-ai/codedog/master/docs/assets/favicon.ico \
--logo https://raw.githubusercontent.com/codedog-ai/codedog/master/docs/assets/logo.png \
--logo-link https://codedog.ai \
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GH_TOKEN }}
message : "chore: Update docs"
branch : "master"
release:
name: Release New Version.
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: "./.github/actions/poetry_setup"
with:
python-version: "3.10"
poetry-version: "1.5.1"
install-command: |
echo "Installing dependencies with poetry..."
poetry install --with dev
- name: Python Semantic Release
run: |
git config --global user.name "github-actions"
git config --global user.email "action@github.com"
poetry run semantic-release version --changelog --no-commit --no-push --skip-build
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GH_TOKEN }}
message : "chore: release"
branch : "master"