-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (46 loc) · 1.63 KB
/
build.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build Data
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Packages 🛎
uses: actions/checkout@v2
with:
path: './editor-packages'
persist-credentials: false
- name: Checkout Editor 🛎
uses: actions/checkout@v2
with:
repository: 'bridge-core/editor'
ref: 'dev'
path: './editor'
fetch-depth: 0
persist-credentials: false
- name: Setup Deno 🚧
uses: denolib/setup-deno@v2
with:
deno-version: v1.37.X
- name: Build data 🔧
run: |
cd ./editor-packages
deno task build
mv packages.zip ../editor/public
mv dataPackage.ts ../editor/src/utils/app
- name: Commit files ✅
run: |
cd ./editor
git config --local user.email "${{ github.event.pusher.email }}"
git config --local user.name "${{ github.event.pusher.name }}"
git add -A && git commit -m "${{ github.event.head_commit.message }}"
- name: Push changes 🔼
uses: ad-m/[email protected]
with:
directory: './editor'
repository: 'bridge-core/editor'
branch: 'dev'
github_token: ${{ secrets.EDITOR_DATA_PACKAGES }}