Skip to content

Commit 5288d80

Browse files
authored
Create pages-deploy.yml
1 parent f1821a0 commit 5288d80

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/pages-deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy to GitHub Pages
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow one concurrent deployment
17+
concurrency:
18+
group: 'pages'
19+
cancel-in-progress: true
20+
21+
jobs:
22+
# Single deploy job since we're just deploying
23+
deploy:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
- name: Set up Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 22
35+
cache: 'npm'
36+
- name: Install dependencies
37+
run: npm ci
38+
- name: Build
39+
run: npm run build
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v4
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
# Upload dist folder
46+
path: './dist'
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)