Skip to content

Publish website

Publish website #32

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 && \
pushd gh-pages && \
git rm -rf . && \
git config user.email "[email protected]" && \
git config user.name "guardrail website builder" && \
popd && \
sbt microsite/mdoc && \
tar -cC modules/microsite/target/mdoc/ . | tar -vxC gh-pages && \
pushd gh-pages && \
git add . && \
git commit -m "Updating ${{ github.ref_name }}" && \
git push