Fix sbt statement (#1130) #3
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 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: | | |
sbt outwatchJS/fullOptJS::webpack | |
mkdir web_deploy | |
mkdir web_deploy/compiler | |
cp outwatch/index.html web_deploy/compiler/ | |
cp .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. |