Skip to content

feat: contribute.md for fe (#94) #71

feat: contribute.md for fe (#94)

feat: contribute.md for fe (#94) #71

Workflow file for this run

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}}