Skip to content

Commit 9a0eb05

Browse files
committed
add WIP workflow
1 parent c28e1ab commit 9a0eb05

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/workflows/build_deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"] # Triggers on merge/push to main
6+
7+
permissions:
8+
contents: read
9+
pages: write # Required to deploy to Pages
10+
id-token: write # Required for authentication
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "24"
23+
24+
- name: Install yarn
25+
run: npm install --global yarn
26+
27+
- name: Install dependencies
28+
run: yarn install
29+
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v4
32+
33+
- name: Build
34+
run: yarn build # Replace with your actual build command
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: "./dist" # Point this to your build output folder (e.g., './dist')
40+
41+
deploy:
42+
needs: build # This 'imports' the result of the build job
43+
runs-on: ubuntu-latest
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424

25-
old
25+
old
26+
27+
dist/

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ yarn start
4747

4848
## TODO:
4949

50-
- mobile layout (diff font size; single column layout, tags in column div)
5150
- gha for deploys on merge to main
5251

5352
- add Sheares!

0 commit comments

Comments
 (0)