Merge pull request #78 from y-yu/update/sbt-pgp-2.3.1 #79
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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Deploy to gh-pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- name: Setup coursier cache | |
uses: coursier/cache-action@v6.4 | |
- name: Make JS code | |
run: ./sbt featherweightGoJS/fastOptJS | |
- name: Prepare to publish | |
run: | | |
mkdir -p ./public/js/target/scala-2.13 | |
cp index.html ./public/ | |
cp ./js/target/scala-2.13/featherweightgo-fastopt.js ./public/js/target/scala-2.13/ | |
- name: Deploy to gh-pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |