Skip to content

Commit 58a9099

Browse files
committed
Add Pages workflow to serve app
1 parent d780a63 commit 58a9099

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/deploy-app.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy /app to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Configure GitHub Pages
25+
uses: actions/configure-pages@v5
26+
27+
- name: Prepare Pages artifact
28+
run: |
29+
mkdir public
30+
cp -R app/* public/
31+
32+
- name: Upload Pages artifact
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: public
36+
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)