Skip to content

Commit 3ca6266

Browse files
feat: try CI
1 parent fee7128 commit 3ca6266

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,51 @@
1+
# Simple workflow for deploying static content to GitHub Pages
12
name: Deploy static content to Pages
23

34
on:
5+
# Runs on pushes targeting the default branch
46
push:
57
branches: ['main']
8+
9+
# Allows you to run this workflow manually from the Actions tab
610
workflow_dispatch:
711

12+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
813
permissions:
914
contents: read
1015
pages: write
1116
id-token: write
1217

18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: 'pages'
21+
cancel-in-progress: true
22+
1323
jobs:
24+
# Single deploy job since we're just deploying
1425
deploy:
1526
environment:
16-
name: github-pages
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
1729
runs-on: ubuntu-latest
1830
steps:
19-
- uses: actions/checkout@v5
20-
- uses: actions/setup-node@v5
31+
- name: Checkout
32+
uses: actions/checkout@v5
33+
- name: Set up Node
34+
uses: actions/setup-node@v5
2135
with:
22-
node-version: 'lts/*'
36+
node-version: lts/*
2337
cache: 'npm'
24-
- run: npm ci
25-
- run: npm run build
26-
- uses: actions/configure-pages@v5
27-
- uses: actions/upload-pages-artifact@v4
38+
- name: Install dependencies
39+
run: npm ci
40+
- name: Build
41+
run: npm run build
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v5
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v4
2846
with:
47+
# Upload dist folder
2948
path: './dist'
30-
- id: deployment
49+
- name: Deploy to GitHub Pages
50+
id: deployment
3151
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)