Skip to content

Publish website

Publish website #28

Workflow file for this run

name: Publish website
on:
workflow_dispatch: {}
jobs:
publish:
name: Publish website
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v14
with:
java-version: [email protected]
- name: Print versions
run: |
java -version
- name: Update website
env:
MICROSITE_PUBLISH_TOKEN: ${{ secrets.MICROSITE_PUBLISH_TOKEN }}
run: |
git clone "https://git:[email protected]/guardrail-dev/guardrail.git" --branch=gh-pages gh-pages
(cd gh-pages && git rm -rf .)
sbt microsite/mdoc
tar -cC modules/microsite/target/mdoc/ . | tar -vxC gh-pages
(cd gh-pages && git add . && git commit -m "Updating ${{ github.ref_name }}" && git push)