-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.95 KB
/
deploy.yml
File metadata and controls
67 lines (55 loc) · 1.95 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
name: Deploy documentation to GitHub Pages
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
outputs:
skipped: ${{ steps.changelog.outputs.skipped }}
tag: ${{ steps.changelog.outputs.tag }}
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
version: ${{ steps.changelog.outputs.version }}
steps:
- name: Checkout 🔔
uses: actions/checkout@v4
- name: Setup Python 🐍
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Cache repository contents 📦
uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache
- name: Install mkdocs-material 📁
run: pip install mkdocs-material
- name: Install additional pip packages 📦
run: pip install pillow cairosvg mkdocs-git-authors-plugin mkdocs-git-committers-plugin-2 mkdocs-git-revision-date-localized-plugin mkdocs-minify-plugin
- name: Deploy to GitHub Pages 🚀
run: mkdocs gh-deploy --force
- name: Conventional Changelog Action 📋
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-user-name: "github-actions[bot]"
git-user-email: "github-actions[bot]@users.noreply.github.com"
skip-git-pull: "true"
skip-on-empty: "false"
release-count: 10
version-file: package.yaml
create-summary: true
- name: Generate Release 📦
if: ${{ steps.changelog.outputs.skipped == 'false' }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
generate_release_notes: true
body: ${{ steps.changelog.outputs.clean_changelog }}