From 0fa917afcaec68e22e45f0fd5d99085000aedca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sakib=20Had=C5=BEiavdi=C4=87?= Date: Wed, 7 Oct 2020 17:26:17 +0200 Subject: [PATCH] Add ghpages github action --- .github/workflows/ghpages.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ghpages.yml 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