-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
55 lines (50 loc) · 1.7 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
44
45
46
47
48
49
50
51
52
53
54
55
name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
- run: npm run build:preview
- run: npm test
- run: npm run lint
# - run: |
# mkdir -p public/integrations/powerbi
# cp dist/upsetjs_venn.pbiviz public/integrations/powerbi/
# cp dist/upsetjs_venn_preview.pbiviz public/integrations/powerbi/
# cp samples/got.pbix public/integrations/powerbi/got_venn.pbix
# cp samples/sample.pbix public/integrations/powerbi/sample_venn.pbix
# - name: Deploy Main
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# uses: upsetjs/actions-gh-pages@sgratzl
# env:
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# with:
# external_repository: upsetjs/upsetjs.github.io
# publish_branch: main
# publish_dir: ./public
# enable_jekyll: true
# keep_files: true
# - if: github.ref == 'refs/heads/dev'
# # move to next directory
# run: |
# mv public public2
# mkdir -p public
# mv public2 public/next
# - name: Deploy Develop
# if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
# uses: upsetjs/actions-gh-pages@sgratzl
# env:
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# with:
# external_repository: upsetjs/upsetjs.github.io
# publish_branch: main
# publish_dir: ./public
# enable_jekyll: true
# keep_files: true