diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml new file mode 100644 index 000000000..7db9c23b0 --- /dev/null +++ b/.github/workflows/ghpages.yml @@ -0,0 +1,28 @@ + +name: Build and Deploy GhPages docs + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: olafurpg/setup-scala@v5 + + - name: Checkout + uses: actions/checkout@v2.3.1 + with: + persist-credentials: false + + - name: Build + run: sbt readme/run + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@3.6.2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: readme/target/scalatex