diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1a1d99..f36d4b2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -17,7 +17,7 @@ permissions: # Allow one concurrent deployment concurrency: - group: 'pages' + group: "pages" cancel-in-progress: true jobs: @@ -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 diff --git a/package.json b/package.json index 0e40039..f290402 100644 --- a/package.json +++ b/package.json @@ -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" },