-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 875 Bytes
/
Copy pathcd.yml
File metadata and controls
39 lines (34 loc) · 875 Bytes
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
name: cd
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Checkout
uses: actions/checkout@v2
- name: Publish to PyPi
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --build
- name: Create GitHub Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body:
draft: false
prerelease: false