Skip to content

Commit 9b75eb0

Browse files
committed
add beta workflow
1 parent cb6c07f commit 9b75eb0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy-beta.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy BETA to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- beta
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20.11.1"
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build the project
25+
run: npm run build
26+
27+
- name: Deploy with gh-pages (to /beta folder)
28+
run: |
29+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
30+
npm run deploy -- --dest beta -u "github-actions-bot <[email protected]>"
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}

0 commit comments

Comments
 (0)