fix: remove simple bar cuz it breaks the loading #61
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: ScafiWeb frontend deploy | |
on: [push, workflow_dispatch] | |
jobs: | |
Build: | |
strategy: | |
# Using matrix build even if not needed | |
matrix: | |
os: [ ubuntu-20.04 ] | |
jvm_version: [ 11 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Checkout the repository | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Scala with Java ${{ matrix.jvm_version }} | |
uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: adopt@1.${{ matrix.java }} | |
- name: Coursier cache | |
uses: coursier/cache-action@v5 | |
- name: Sbt test | |
run: sbt test | |
Deploy: | |
runs-on: ubuntu-latest | |
needs: [Build] | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
steps: | |
# Checkout the repository | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Fetch tags | |
run: git fetch --tags -f | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v11 | |
- name: Coursier cache | |
uses: coursier/cache-action@v5 | |
- name: Build project scafi-web project with SBT | |
run: sbt -v "project frontend; fullOptJS::webpack" | |
- name: Build compiler | |
run: sbt "project online-compiler; assembly" | |
- name: Adjust folders for deployment | |
run: .github/scripts/adjust-deployment.sh | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
external_repository: scafi/web | |
publish_dir: ./public | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Upload compiler service to Docker Hub | |
run: .github/scripts/docker-release.sh | |