-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (31 loc) · 944 Bytes
/
build.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
name: build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install dependencies
run: poetry install --with build
- name: Build binary with PyInstaller
run: poetry run pyinstaller --clean -y songs-to-youtube.spec
- name: Zip release files
run: 7z a songs-to-youtube-${{matrix.os}}.zip ./dist/*
- name: Upload release files
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
file: songs-to-youtube-${{matrix.os}}.zip
tag: ${{github.ref}}