Skip to content

fixed mobile

fixed mobile #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Clean dist
run: rm -rf dist
- name: Build
env:
NODE_ENV: production
BASE_URL: ${{ github.event.repository.name }}
run: npm run build
- name: Verify bundle location
run: |
echo "Checking bundle.js location..."
if [ ! -f "dist/js/bundle.js" ]; then
echo "Error: bundle.js not found in dist/js/"
echo "Contents of dist directory:"
ls -R dist/
exit 1
fi
echo "Bundle.js found at correct location"
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2