update to latest preview #659
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/github-push-action@v0.6.0 | |
with: | |
directory: './editor' | |
repository: 'bridge-core/editor' | |
branch: 'dev' | |
github_token: ${{ secrets.EDITOR_DATA_PACKAGES }} |