Skip to content

fix path

fix path #5

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
BOSATSU_CI: "true"
steps:
- uses: "actions/[email protected]"
- uses: "coursier/cache-action@v2"
- name: "java 11 setup"
uses: "olafurpg/setup-scala@v13"
with:
java-version: "11"
- name: "build app"
run: |
export NODE_OPTIONS=--openssl-legacy-provider
sbt outwatchJS/fullOptJS::webpack
mkdir web_deploy
mkdir web_deploy/compiler
cp outwatch/index.html web_deploy/compiler/
cp outwatch/.js/target/scala-2.13/scalajs-bundler/main/bosatsu-outwatch-opt-bundle.js web_deploy/compiler/bosatsu_ui.js
- uses: actions/checkout@v2
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: web_deploy # The folder the action should deploy.