Skip to content

fix vite warning: base should start with a slash #27

fix vite warning: base should start with a slash

fix vite warning: base should start with a slash #27

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
jobs:
build:
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.3.1-0'
environment-file: build-environment.yaml
environment-name: build
init-shell: bash
- name: Build
run: |
micromamba create \
--yes \
--platform=emscripten-32 \
--file web-environment.yaml
mkdir -p ./public/empack && mkdir -p ./src/pyjs
sudo chmod +rw ~/micromamba
empack pack env \
--env-prefix=~/micromamba/envs/web \
--relocate-prefix=/ \
--no-use-cache \
--outdir=./public/empack \
--config=empack_config.yaml && \
cp -r ~/micromamba/envs/web/lib_js/pyjs/. ./src/pyjs/
ls -l ./src/pyjs
- name: Patch
run: npm run patch_runtime
- name: Build web app
run: npm install && npm run build
- name: Fix permissions
run: |
chmod -c -R +rX "./dist/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy site to GitHub Pages
uses: actions/deploy-pages@v2