Skip to content

Commit 124608b

Browse files
authored
Create main.yml
1 parent 37d5f3e commit 124608b

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)