-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.04 KB
/
packaging.yml
File metadata and controls
43 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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