Skip to content

fix prod CSP error + queue thumbnail fixed size #8

fix prod CSP error + queue thumbnail fixed size

fix prod CSP error + queue thumbnail fixed size #8

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
push:
tags: ['v*']
branches:
- main
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm i
- run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Upload Artifact
# uses: actions/upload-artifact@v2
# env:
# EXTENSION: "${{matrix.os == 'macos-latest' && 'dmg' || (matrix.os == 'windows-latest' && 'exe' || 'AppImage')}}"
# with:
# name: build
# path: out/YoutubePlayer*.${{env.EXTENSION}}
# release:
# needs: build
# name: Release
# runs-on: ubuntu-latest
# if: ${{ startsWith(github.ref, 'refs/tags/v') }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Download artifact
# uses: actions/download-artifact@v2
# with:
# name: build
# path: release
# - name: Changelog
# uses: scottbrenner/generate-changelog-action@master
# id: Changelog
# with:
# package-dir: 'src/package.json'
# - name: Release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# name: Release ${{ github.ref }}
# body: ${{ steps.Changelog.outputs.changelog }}
# draft: false
# prerelease: false
# files: |
# release/*