Skip to content

Commit eba5b8e

Browse files
Trying to get ST to work
1 parent ca26c2d commit eba5b8e

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,27 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- name: Fetch deps
18-
run: yarn
1916
- name: Build
20-
run: yarn build
21-
- name: Upload artifact
22-
uses: actions/upload-pages-artifact@v3
23-
with:
24-
path: ./dist
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v3
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v3
25+
26+
- name: Install dependencies
27+
uses: bahmutov/npm-install@v1
28+
29+
- name: Build project
30+
run: npm run build
31+
32+
- name: Upload production-ready build files
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: production-files
36+
path: ./dist
2537

2638
deploy:
2739
runs-on: ubuntu-latest

src/Components/Background/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ts-ignore
2-
// import ShadertoyReact from "shadertoy-react";
2+
import ShadertoyReact from "shadertoy-react";
33
//Above is like only JS, but it works with react.
44
//@ts-check
55

@@ -14,7 +14,7 @@ const fragmentShader = `
1414
export function Background(): JSX.Element {
1515
return <>
1616
<div className="-z-1 fixed top-0 left-0 w-full h-full">
17-
{/* <ShadertoyReact fs={fragmentShader} /> */}
17+
<ShadertoyReact fs={fragmentShader} />
1818
</div>
1919
</>;
2020
}

0 commit comments

Comments
 (0)