-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (35 loc) · 1.12 KB
/
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
34
35
36
37
38
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm run docker:start
- run: npm run install
- run: npm run link-local
- run: npm test
- run: npm run schema
working-directory: packages/cli
- name: prepare schema.abaplint.org
run: |
cd ..
cd ..
git clone https://github.com/abaplint/schema.abaplint.org.git
ls
cp transpiler/transpiler/packages/cli/schema.json schema.abaplint.org/transpiler.json
- name: deploy schema.abaplint.org
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' && github.repository == 'abaplint/transpiler'
with:
deploy_key: ${{ secrets.SCHEMA_DEPLOY_KEY }}
external_repository: abaplint/schema.abaplint.org
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: main
cname: schema.abaplint.org
publish_dir: ../../schema.abaplint.org