File tree Expand file tree Collapse file tree 4 files changed +56
-7
lines changed Expand file tree Collapse file tree 4 files changed +56
-7
lines changed Original file line number Diff line number Diff line change 55 branches : [ main ]
66 pull_request :
77 branches : [ main ]
8+ # Add release trigger
9+ release :
10+ types : [published]
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
820
921jobs :
10- build :
22+ test :
1123 runs-on : ubuntu-latest
24+ if : github.event_name != 'release'
1225
1326 strategy :
1427 matrix :
3245 - name : Run tests with coverage
3346 run : npm run test:coverage
3447
35- - name : Build
36- run : npm run build
37-
3848 # Upload coverage report to Codecov
3949 - name : Upload coverage to Codecov
4050 uses : codecov/codecov-action@v5
5161 uses : actions/upload-artifact@v4
5262 with :
5363 name : frontend-coverage-report
54- path : coverage
64+ path : coverage
65+
66+ build-and-deploy :
67+ runs-on : ubuntu-latest
68+ if : github.event_name == 'release'
69+ needs : test
70+
71+ steps :
72+ - uses : actions/checkout@v4
73+
74+ - name : Use Node.js
75+ uses : actions/setup-node@v4
76+ with :
77+ node-version : ' 18.x'
78+ cache : ' npm'
79+
80+ - name : Install dependencies
81+ run : npm ci
82+
83+ - name : Build
84+ run : npm run build
85+
86+ # Upload build output
87+ - name : Upload artifact
88+ uses : actions/upload-pages-artifact@v3
89+ with :
90+ path : ./dist
91+
92+ deploy :
93+ environment :
94+ name : github-pages
95+ url : ${{ steps.deployment.outputs.page_url }}
96+ runs-on : ubuntu-latest
97+ needs : build-and-deploy
98+ if : github.event_name == 'release'
99+ steps :
100+ - name : Deploy to GitHub Pages
101+ id : deployment
102+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export async function getTestPyodide() {
1919 await pyodide . loadPackage ( 'micropip' ) ;
2020 await pyodide . runPythonAsync ( `
2121 import micropip
22- await micropip.install('typed-ffmpeg= =3.0.2a0')
22+ await micropip.install('typed-ffmpeg> =3.0.2a0')
2323 ` ) ;
2424 }
2525 return pyodide ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export async function getPyodide(options?: {
3333
3434 await pyodide . runPythonAsync ( `
3535 import micropip
36- await micropip.install('typed-ffmpeg= =3.0.2a0')
36+ await micropip.install('typed-ffmpeg> =3.0.2a0')
3737 ` ) ;
3838 console . log ( 'typed-ffmpeg installed successfully.' ) ;
3939 }
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react';
33
44// https://vitejs.dev/config/
55export default defineConfig ( {
6+ base : '/typed-ffmpeg-playground/' ,
67 plugins : [ react ( ) ] ,
78 resolve : {
89 alias : {
You can’t perform that action at this time.
0 commit comments