-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (47 loc) · 1.32 KB
/
release-created.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
45
46
47
48
49
50
51
52
53
54
55
name: release-created
on:
release:
types: [created]
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- uses: Gr1N/setup-poetry@v7
with:
poetry-version: 1.1.12
- run: make install-deps
- run: make docs-build
- uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./site
build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- uses: Gr1N/setup-poetry@v7
with:
poetry-version: 1.1.12
- run: make install-deps
- run: make publish
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
build-notify:
runs-on: ubuntu-latest
needs: [build-docs, build-package]
steps:
- uses: appleboy/telegram-action@0.0.7
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: markdown
message: ${{ github.repository }} publish ${{ github.ref }} succeeded