-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.13 KB
/
publish.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
name: Auto-publish
on: [push, workflow_dispatch]
jobs:
# Auto-publish when version is increased
publish-pypi:
# Only publish on `main` branch
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions: # Don't forget permissions
contents: write
steps:
- uses: etils-actions/pypi-auto-publish@v1
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
parse-changelog: false
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies with Poetry
run: |
pip install poetry
poetry install
- name: Download ffmpeg binary
run: python platform/download_ffmpeg.py
- name: Build EXE with PyInstaller
run: poetry run pyinstaller karaoke-prep.spec
- name: Upload EXE as Artifact
uses: actions/upload-artifact@v2
with:
name: karaoke-prep-windows
path: |
build/
*.exe
*/*.exe