mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
31 lines
781 B
YAML
31 lines
781 B
YAML
name: Publish Docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Cache SBT
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.ivy2/cache
|
|
~/.sbt
|
|
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup Scala
|
|
uses: olafurpg/setup-scala@v13
|
|
- name: Build docs
|
|
run: sbt docs/unidoc
|
|
- name: Deploy to GitHub Pages
|
|
uses: JamesIves/github-pages-deploy-action@4.1.5
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
BRANCH: gh-pages
|
|
FOLDER: docs/target/scala-2.13/unidoc
|