Simplify progress rendering #180
Workflow file for this run
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 | |
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@v3 | |
- name: Cache docker image | |
uses: actions/cache@v3 | |
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@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .node-version | |
cache: yarn | |
- name: Cache docker image | |
uses: actions/cache@v3 | |
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@5.2.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 |