Skip to content

feat: 《分布式IM即时通讯系统》-专栏总结 #1034

feat: 《分布式IM即时通讯系统》-专栏总结

feat: 《分布式IM即时通讯系统》-专栏总结 #1034

Workflow file for this run

name: 'github actions build and deploy gh-pages'
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
# - name: Sync to Gitcode
# uses: wearerequired/git-mirror-action@master
# env:
# SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
# with:
# source-repo: [email protected]:binghe001/BingheGuide.git
# destination-repo: [email protected]:binghe/binghe.gitcode.host.git
- name: install and build
run: |
export NODE_OPTIONS=--max_old_space_size=8192
npm install
npm run build
cp README.md .site/
- name: "Deploy Github"
uses: s0/git-publish-subdir-action@master
env:
NODE_OPTIONS: "--max_old_space_size=8192"
REPO: [email protected]:binghe001/binghe001.github.io.git
BRANCH: master
FOLDER: .site
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
- name: Sync to Gitcode
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }}
with:
source-repo: [email protected]:binghe001/binghe001.github.io.git
destination-repo: [email protected]:binghe/binghe.gitcode.host.git
# - name: "Deploy Gitcode"
# uses: s0/git-publish-subdir-action@master
# env:
# NODE_OPTIONS: "--max_old_space_size=4096"
# REPO: [email protected]:binghe/binghe.gitcode.host.git
# BRANCH: master
# FOLDER: .site
# SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_GITCODE_PRIVATE_KEY }}
# - name: "Deploy Gitee"
# uses: s0/git-publish-subdir-action@master
# env:
# REPO: [email protected]:binghe001/binghe001.git
# BRANCH: master
# FOLDER: .site
# SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_GITEE_PRIVATE_KEY }}
# KNOWN_HOSTS_FILE: docs/hosts/known_hosts