We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b9e647 commit 9fec111Copy full SHA for 9fec111
.github/workflows/deploy-prod.yml
@@ -0,0 +1,33 @@
1
+name: Deploy Open Course
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - prod
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
16
+ - name: Setup Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: 18
20
+ cache: npm
21
22
+ - name: Install dependencies
23
+ run: npm install
24
25
+ - name: Build project
26
+ run: npm run dev
27
28
+ - name: Deploy to GitHub Pages
29
+ uses: peaceiris/actions-gh-pages@v4
30
31
+ github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ publish_dir: / # Vite → dist | CRA → build
33
+ publish_branch: gh-pages
0 commit comments