From cd251ed52bc4f1c080133488a4f8f4bac3452d72 Mon Sep 17 00:00:00 2001 From: Denis Nebytov Date: Mon, 24 Aug 2026 17:29:33 +0300 Subject: [PATCH 1/3] Add GitHub Pages deploy for the static CRA build. Keep S3 release deploys on root paths by setting PUBLIC_URL only in the Pages workflow. Co-authored-by: Cursor --- .github/workflows/github-pages.yml | 67 ++++++++++++++++++++++++++++++ public/.nojekyll | 0 src/index.js | 4 +- 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/github-pages.yml create mode 100644 public/.nojekyll diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000..447ec3a --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,67 @@ +name: 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: + - uses: actions/checkout@v4 + + - name: Read .nvmrc + id: nvm + run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: '${{ steps.nvm.outputs.version }}' + cache: 'npm' + + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + + - name: npm install + run: npm i + + - name: Create production .env + run: echo "REACT_APP_DEBUG=false" > .env + + - name: Build + run: npm run build + env: + PUBLIC_URL: ${{ steps.pages.outputs.base_path }} + + - name: Prepare Pages files + run: | + touch build/.nojekyll + cp build/index.html build/404.html + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/public/.nojekyll b/public/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/src/index.js b/src/index.js index 4898019..946530f 100644 --- a/src/index.js +++ b/src/index.js @@ -9,6 +9,8 @@ import {BitcoinProvider} from './hooks/bitcoinProvider' import {ToastProvider} from './hooks/toastProvider' import {BrowserRouter, Route, Routes} from 'react-router-dom' +const routerBasename = process.env.PUBLIC_URL || undefined + const root = ReactDOM.createRoot(document.getElementById('root')) root.render( @@ -17,7 +19,7 @@ root.render( - + } /> From e0b964606c8bf36783b069b5baed792a0c5bc082 Mon Sep 17 00:00:00 2001 From: Denis Nebytov Date: Mon, 24 Aug 2026 17:42:07 +0300 Subject: [PATCH 2/3] Do not cancel in-flight GitHub Pages deploys. Official Pages workflows keep cancel-in-progress false so a newer push cannot leave a stuck deployment. Co-authored-by: Cursor --- .github/workflows/github-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 447ec3a..f7999d8 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -12,7 +12,7 @@ permissions: concurrency: group: pages - cancel-in-progress: true + cancel-in-progress: false jobs: build: From d01f4282ef8af29bab1486a49922b41c4308e00a Mon Sep 17 00:00:00 2001 From: Denis Nebytov Date: Mon, 24 Aug 2026 17:47:16 +0300 Subject: [PATCH 3/3] chore: bump version to 2.5.0 Co-authored-by: Cursor --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0e6f5fb..61a3466 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dapp-example", - "version": "2.4.0", + "version": "2.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dapp-example", - "version": "2.4.0", + "version": "2.5.0", "dependencies": { "@emurgo/cardano-serialization-lib-browser": "14.1.2", "@emurgo/cip4-js": "^1.0.7", diff --git a/package.json b/package.json index 847b080..34d9c09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dapp-example", - "version": "2.4.0", + "version": "2.5.0", "private": true, "dependencies": { "@emurgo/cardano-serialization-lib-browser": "14.1.2",