Skip to content

Commit

Permalink
chore: publish without base url
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Jul 26, 2024
1 parent ef22219 commit 8dedde5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

jobs:
Expand All @@ -40,16 +40,14 @@ jobs:
- name: Install deps
run: pnpm install
- name: Build
run: pnpm gh-build
env:
BASE_URL: https://polkadot-api.github.io/react-teleport-example/
run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload dist repository
path: './dist'
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"postinstall": "papi --whitelist whitelist.ts",
"dev": "vite",
"build": "papi --whitelist whitelist.ts && tsc && vite build",
"gh-build": "papi --whitelist whitelist.ts && tsc && vite build --base=/react-teleport-example/",
"format": "prettier --write README.md \"src/**/*.{js,jsx,ts,tsx,json,md}\"",
"preview": "vite preview"
},
Expand Down

0 comments on commit 8dedde5

Please sign in to comment.