Updated workflow.
All checks were successful
Build and Deploy / Build and Deploy (push) Successful in 22s

This commit is contained in:
Bob Vandevliet 2024-09-26 11:50:03 +02:00
parent 7edc84b330
commit 27c3f738ad

View file

@ -15,7 +15,7 @@ jobs:
name: Build and Deploy name: Build and Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
options: --volume "nginx_static:/usr/share/nginx/static:rw" options: --volume "${{ secrets.NGINX_HTML_DIRECTORY }}:/usr/share/nginx/html:rw"
steps: steps:
- -
name: Checkout name: Checkout
@ -76,4 +76,4 @@ jobs:
pnpm html-minifier-terser --collapse-whitespace --minify-css --minify-js --remove-comments --input-dir public --output-dir public --file-ext html pnpm html-minifier-terser --collapse-whitespace --minify-css --minify-js --remove-comments --input-dir public --output-dir public --file-ext html
- -
name: Copy files to public folder name: Copy files to public folder
run: mkdir -p /usr/share/nginx/static/fpv; cp -rf public/* /usr/share/nginx/static/fpv run: mkdir -p /usr/share/nginx/html/fpv; cp -rf public/* /usr/share/nginx/html/fpv