-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 826 Bytes
/
ci.yml
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
name: Syntax check
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: build
run: npm install -g pnpm && pnpm install && pnpm run build
- name: copy to 1 folder
run: cp README.md LICENSE action.yml .gitignore ./dist
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_TOKEN }}
with:
source-directory: ./dist
destination-github-username: guzhongren
destination-repository-name: algolia-docsearch-upload-action
user-email: guzhongren@live.cn
target-branch: main