-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (64 loc) · 1.88 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Release
on:
push:
branches:
- main
env:
TAG_NAME: v1.0.0
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.17.1
cache: npm
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
npm ci
- name: Build App
run: npm run build:app:nocheck
- name: Upload Artifacts
uses: actions/upload-artifact@v3
env:
APP_NAME: ${{ matrix.os == 'ubuntu-latest' && 'audio_splitter_linux' || matrix.os == 'windows-latest' && 'audio_splitter_window.exe' || matrix.os == 'macos-latest' && 'audio_splitter_macos'}}
with:
name: ${{env.APP_NAME}}
path: ./dist/${{env.APP_NAME}}
if-no-files-found: 'warn'
retention-days: 1
release:
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Delete Existing Release and Tag
run: |
git push --delete origin ${{env.TAG_NAME}} || true
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: 4lex0017/AudioStreamSplitting
with:
files: |
audio_splitter_linux/audio_splitter_linux
audio_splitter_window.exe/audio_splitter_window.exe
draft: false
tag_name: ${{env.TAG_NAME}}