generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 64
37 lines (28 loc) · 858 Bytes
/
CD.yaml
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
name: CD - Publish Releases
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Update Version in __init__.py
run: sed -i 's/0.0.0/${{ github.event.release.tag_name }}/g' ./deepgram/__init__.py
- name: Install Dependencies
run: pip install .
#- name: Run Tests
# run: pytest tests/
- name: Install build
run: python -m pip install --upgrade build
- name: Build SDK
run: python -m build
- name: Install twine
run: python -m pip install --upgrade twine
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}