You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contents: write # This is required for the deployment to work
13
-
steps:
14
-
- uses: actions/checkout@v3
8
+
# Allows you to run this workflow manually from the Actions tab
9
+
workflow_dispatch:
15
10
16
-
- name: Setup Node
17
-
uses: actions/setup-node@v3
18
-
with:
19
-
node-version: '20'# Use the Node.js version specified in your package.json
11
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12
+
permissions:
13
+
contents: read
14
+
pages: write
15
+
id-token: write
20
16
21
-
- name: Install dependencies
22
-
run: npm ci
17
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19
+
concurrency:
20
+
group: "pages"
21
+
cancel-in-progress: false
23
22
24
-
- name: Build
25
-
run: npm run build
26
23
27
-
- name: Deploy
28
-
uses: peaceiris/actions-gh-pages@v3
24
+
jobs:
25
+
# Single deploy job since we're just deploying
26
+
build-and-deploy:
27
+
environment:
28
+
name: github-pages
29
+
url: ${{ steps.deployment.outputs.page_url }}
30
+
runs-on: ubuntu-latest
31
+
steps:
32
+
- name: Checkout
33
+
uses: actions/checkout@v4
34
+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
35
+
run: |
36
+
npm ci
37
+
npm run build
38
+
- name: Setup Pages
39
+
uses: actions/configure-pages@v4
40
+
- name: Upload artifact
41
+
uses: actions/upload-pages-artifact@v3
29
42
with:
30
-
github_token: ${{ secrets.GITHUB_TOKEN }}
31
-
publish_dir: ./build/client # Adjust this to your build output directory
0 commit comments