-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 988 Bytes
/
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
name: release-created
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: Gr1N/setup-poetry@v1
with:
poetry-version: 1.0.0
- uses: actions/cache@v1
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-3.8-poetry-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-3.8-poetry-
- run: make install-deps
- run: make publish
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
format: markdown
message: ${{ github.repository }} publish ${{ github.ref }} succeeded