We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498a2df commit cf7af38Copy full SHA for cf7af38
.github/workflows/deploy_gh_pages.yml
@@ -0,0 +1,30 @@
1
+ name: Deploy to GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # or master
7
8
+ jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20' # or your preferred Node.js version
19
20
+ - name: Install dependencies
21
+ run: npm install
22
23
+ - name: Build package
24
+ run: npm run build # Replace with your build command, outputting to e.g., 'dist'
25
26
+ - name: Deploy to GitHub Pages
27
+ uses: peaceiris/actions-gh-pages@v4
28
29
+ github_token: ${{ secrets.GITHUB_TOKEN }}
30
+ publish_dir: ./dist # Directory containing your built output
0 commit comments