Skip to content

Commit b012f40

Browse files
Merge branch 'main' into dev
2 parents eed11f3 + e799798 commit b012f40

File tree

1 file changed

+27
-51
lines changed

1 file changed

+27
-51
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,51 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy to GitHub Pages
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
33

44
on:
5+
# Runs on pushes targeting the default branch
56
push:
6-
branches: [ main ]
7+
branches: [$default-branch]
78

9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
813
permissions:
9-
contents: write
14+
contents: read
1015
pages: write
1116
id-token: write
12-
pull-requests: write
13-
repository-projects: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
1423

1524
jobs:
25+
# Build job
1626
build:
1727
runs-on: ubuntu-latest
1828
steps:
1929
- name: Checkout
2030
uses: actions/checkout@v4
21-
22-
- name: Setup pnpm
23-
uses: pnpm/action-setup@v4
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v5
33+
- name: Build with Jekyll
34+
uses: actions/jekyll-build-pages@v1
2435
with:
25-
version: 9
26-
27-
- name: Install dependencies
28-
run: pnpm install
29-
30-
- name: Build application
31-
run: pnpm build:docs
32-
33-
- name: Save build folder
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: build
37-
if-no-files-found: error
38-
path: ./_site
36+
source: ./
37+
destination: ./_site
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
3940

41+
# Deployment job
4042
deploy:
41-
runs-on: ubuntu-latest
42-
needs: build
4343
environment:
4444
name: github-pages
4545
url: ${{ steps.deployment.outputs.page_url }}
46-
strategy:
47-
matrix:
48-
node-version: [20]
49-
46+
runs-on: ubuntu-latest
47+
needs: build
5048
steps:
51-
- name: Setup pnpm
52-
uses: pnpm/action-setup@v4
53-
with:
54-
version: 9
55-
56-
- name: Checkout
57-
uses: actions/checkout@v4
58-
59-
- name: Download the build folder
60-
uses: actions/download-artifact@v4
61-
with:
62-
name: build
63-
path: ./_site
64-
65-
- name: Install dependencies
66-
run: pnpm install
67-
68-
- name: Use Node.js ${{ matrix.node-version }}
69-
uses: actions/setup-node@v3
70-
with:
71-
node-version: ${{ matrix.node-version }}
72-
7349
- name: Deploy to GitHub Pages
7450
id: deployment
7551
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)