-
-
Notifications
You must be signed in to change notification settings - Fork 15
65 lines (54 loc) · 1.67 KB
/
release.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
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- "*"
jobs:
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Build artifacts
run: |
pipx run build
- name: Test Build
run: |
pip install dist/*.whl
tetos openai -o openai.mp3 "Hello world"
tetos azure -o azure.mp3 "Hello world"
tetos edge -o edge.mp3 "Hello world"
tetos volc -o volc.mp3 "Hello world"
tetos google -o google.mp3 "Hello world"
env:
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_SPEECH_KEY: ${{ secrets.AZURE_SPEECH_KEY }}
AZURE_SPEECH_REGION: ${{ secrets.AZURE_SPEECH_REGION }}
VOLC_ACCESS_KEY: ${{ secrets.VOLC_ACCESS_KEY }}
VOLC_SECRET_KEY: ${{ secrets.VOLC_SECRET_KEY }}
VOLC_APP_KEY: ${{ secrets.VOLC_APP_KEY }}
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_CREDENTIALS }}
- name: Upload audio files
uses: actions/upload-artifact@v2
with:
name: audio
path: ./*.mp3
- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload to Pypi
run: |
pip install twine
twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*