Skip to content

feat: at long last my video recorder so that it helps me take good notes #1

feat: at long last my video recorder so that it helps me take good notes

feat: at long last my video recorder so that it helps me take good notes #1

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: npm ci
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Install FFmpeg (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install ffmpeg -y
echo "FFmpeg installed successfully"
- name: Install FFmpeg (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install ffmpeg
echo "FFmpeg installed successfully"
- name: Build application
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
npm run build:win
else
npm run build:mac
fi
- name: Upload Windows artifacts
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: |
dist/*.exe
dist/*.blockmap
dist/win-unpacked/
retention-days: 30
- name: Upload macOS artifacts
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: macos-artifacts
path: |
dist/*.dmg
dist/*.blockmap
dist/mac/
retention-days: 30
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download Windows artifacts
uses: actions/download-artifact@v4
with:
name: windows-artifacts
path: dist/windows
- name: Download macOS artifacts
uses: actions/download-artifact@v4
with:
name: macos-artifacts
path: dist/macos
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/windows/*.exe
dist/windows/*.blockmap
dist/macos/*.dmg
dist/macos/*.blockmap
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}