You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in index.html you should remove dot form image src
select on github pages deployment GitHub Actions process
choose static HTML -> configure
add the followings into the action static.yml file:
GitHub actions YAML file:
# Simple workflow for deploying static content to GitHub Pagesname: Deploy static content to Pageson:
# Runs on pushes targeting the default branchpush:
branches: ["master"]# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pagespermissions:
contents: readpages: writeid-token: write# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.concurrency:
group: "pages"cancel-in-progress: falsejobs:
# Single deploy job since we're just deployingdeploy:
environment:
name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-lateststeps:
- name: Checkoutuses: actions/checkout@v3
- name: Setup Nodeuses: actions/setup-node@v3with:
node-version: '18'cache: 'npm'
- name: Install Dependenciesrun: npm install
- name: Build Projectrun: npm run build
- name: Setup Pagesuses: actions/configure-pages@v3
- name: Upload artifactuses: actions/upload-pages-artifact@v1with:
# Upload entire repositorypath: './dist'
- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pages@v2