Skip to content

Update je2be-core

Update je2be-core #198

Workflow file for this run

name: Build
on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
env:
JE2BE_DOCKER_CACHE_PATH: je2be_build_wasm.docker
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache docker image
uses: actions/cache@v4
id: cache-docker-image
with:
path: ${{ env.JE2BE_DOCKER_CACHE_PATH }}
key: ${{ hashFiles('Dockerfile') }}
- name: Build docker image
if: steps.cache-docker-image.outputs.cache-hit != 'true'
run: |
make docker_image
docker save je2be_build_wasm:latest -o ${JE2BE_DOCKER_CACHE_PATH}
build:
runs-on: ubuntu-latest
needs: [docker]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: yarn
- name: Cache docker image
uses: actions/cache@v4
id: cache-docker-image
with:
path: ${{ env.JE2BE_DOCKER_CACHE_PATH }}
key: ${{ hashFiles('Dockerfile') }}
- name: Restore docker image
run: docker load -i ${JE2BE_DOCKER_CACHE_PATH}
- name: Build
env:
JE2BE_VERSION: ${{ github.ref_name }}
run: |
yarn install
make all
- name: Deploy
if: github.ref_type == 'tag'
uses: burnett01/rsync-deployments@7.0.1
with:
switches: -avc --delete
path: public/
remote_path: ${{ secrets.DEPLOY_DIR }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USERNAME }}
remote_key: ${{ secrets.DEPLOY_KEY }}
remote_port: ${{ secrets.DEPLOY_PORT }}
- name: Setup bugsnag
if: github.ref_type == 'tag'
env:
JE2BE_VERSION: ${{ github.ref_name }}
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
run: |
yarn reportbuild
yarn upsourcemaps