Skip to content

πŸ§‘β€πŸ€β€πŸ§‘ 更新友链 #60

πŸ§‘β€πŸ€β€πŸ§‘ 更新友链

πŸ§‘β€πŸ€β€πŸ§‘ 更新友链 #60

Workflow file for this run

name: Deploy Stable Version
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production
env:
PUBLIC_API_ENDPOINT: ${{vars.PUBLIC_API_ENDPOINT}}
PUBLIC_COOKIE_DOMAIN: ${{vars.PUBLIC_COOKIE_DOMAIN}}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
- 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@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: pages