Skip to content

update: 错误内容调整 #5

update: 错误内容调整

update: 错误内容调整 #5

Workflow file for this run

name: Package on Push
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: version 22
uses: actions/setup-node@v2
with:
node-version: '22'
- name: set system time
id: beijing_time
run: echo "BEIJING_TIME=$(TZ=Asia/Shanghai date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: yarn install
run: |
rm -rf .npmrc
npm install yarn -g
yarn install --ignore-engines
- name: build
run: yarn build
- name: push docs
run: |
cd build/
git init
git config --local user.email "ningmengchongshui@gmail.com"
git config --local user.name "ningmengchongshui"
git add -A
git commit -m "自动打包 - ${{ env.BEIJING_TIME }}"
git remote add github https://lvyjs:${{ secrets.GH_TOKEN }}@github.com/lemonade-lab/bubble.dev.git
git push github HEAD:docs -f