Skip to content

Commit

Permalink
Added routing and persisting converter state in url.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuchta committed Nov 27, 2023
1 parent e1842ea commit 44cf034
Show file tree
Hide file tree
Showing 14 changed files with 5,481 additions and 8,675 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build
run: npm run build
run: pnpm run build

- name: Create subpages
run: |
mkdir dist/add dist/multiply dist/convert
cp dist/index.html dist/add
cp dist/index.html dist/multiply
cp dist/index.html dist/convert
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
path: './dist'

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="root" class="font-mono"></div>
</body>
</html>
Loading

0 comments on commit 44cf034

Please sign in to comment.