Skip to content

Commit a805e69

Browse files
committed
deploy to ghpages
1 parent 6f5bb0e commit a805e69

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

.github/workflows/main.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: true
15+
16+
jobs:
17+
deploy:
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/[email protected]
24+
- uses: pnpm/action-setup@v2
25+
with:
26+
version: 8
27+
- name: Setup Node.js 20
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: 20
31+
cache: pnpm
32+
- name: Install deps
33+
run: pnpm install
34+
- name: Build
35+
run: pnpm run build-gh
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v3
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v1
40+
with:
41+
path: "./dist"
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v1

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# WSA
1+
# WSA
22

33
Whitespace interpreter and visualiser / debugger.
44

5+
(Work in progress, proof of concept, side project, might not update in a while)
6+
57
It also compiles a modified version of [Burghard's WSA](https://github.com/wspace/burghard-wsa)
68

79
## Machine details

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React + TS</title>
7+
<title>Whitespace interpreter</title>
88
</head>
99
<body class="overflow-hidden">
1010
<div

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"dev": "vite",
1111
"build": "tsc -b && vite build",
12+
"build-gh": "tsc -b && vite build --base /wsa",
1213
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1314
"preview": "vite preview",
1415
"cli": "node dist/cli.js"

0 commit comments

Comments
 (0)