Skip to content

Commit 8e81d78

Browse files
Enable Development Releases
1 parent 9fdccd2 commit 8e81d78

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/CD-dev.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Development Releases
2+
3+
on:
4+
push:
5+
branches:
6+
- "!not_activated_on_branches!*"
7+
tags:
8+
- "v[0-9]+.[0-9]+.[0-9]+-dev.[0-9]+"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.10'
18+
19+
- name: Update Version in __init__.py
20+
run: sed -i 's/0.0.0/${{ github.ref }}/g' ./deepgram/__init__.py
21+
22+
- name: Install Dependencies
23+
run: pip install .
24+
25+
#- name: Run Tests
26+
# run: pytest tests/
27+
28+
- name: Install build
29+
run: python -m pip install --upgrade build
30+
31+
- name: Build SDK
32+
run: python -m build
33+
34+
- name: Install twine
35+
run: python -m pip install --upgrade twine
36+
37+
- name: Publish to PyPi
38+
uses: pypa/gh-action-pypi-publish@release/v1
39+
with:
40+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)