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
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
12
11
runs-on: ubuntu-latest
13
12
steps:
14
-
- name: Checkout Repository
13
+
- name: Checkout
15
14
uses: actions/checkout@v4
16
15
17
16
- name: Install pnpm
18
17
uses: pnpm/action-setup@v4
19
18
with:
20
19
version: 9
21
20
22
-
- name: Use Node.js
21
+
- name: Setup Node.js
23
22
uses: actions/setup-node@v4
24
23
with:
25
-
node-version: "20"
26
-
cache: "pnpm"
24
+
node-version: "20"# or your preferred Node.js version
25
+
26
+
- name: Install dependencies
27
+
run: pnpm install
27
28
28
-
- name: Install and Build # This example project is built using pnpm 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.
29
-
run: |
30
-
pnpm install
31
-
pnpm run build
29
+
- name: Build project
30
+
run: pnpm run build
32
31
33
32
- name: Deploy to GitHub Pages
34
-
uses: JamesIves/github-pages-deploy-action@v4
33
+
uses: peaceiris/actions-gh-pages@v4
35
34
with:
36
-
folder: dist # The folder the action should deploy.
35
+
github_token: ${{ secrets.GITHUB_TOKEN }}
36
+
publish_dir: ./dist # Assumes your build output is in 'dist'
0 commit comments