Skip to content

Commit

Permalink
🤖 添加 Stable 版本自动部署 GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Skywt2003 committed Feb 4, 2024
1 parent 7cf6dd7 commit bba9150
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Stable Version

on:
push:
branches:
- stable
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: stable
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 21
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: pages

0 comments on commit bba9150

Please sign in to comment.