Skip to content

ci

ci #523

Workflow file for this run

name: ci
on:
push:
pull_request:
schedule:
- cron: '0 18 * * 4'
jobs:
test:
timeout-minutes: 20
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'foundweekends' }}
steps:
- uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
java-version: 8
distribution: temurin
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: coursier/cache-action@a0e7cd24be81bc84f0d7461e02bd1a96980553d7 # v6.4.4
- run: rm -rf "$HOME/.sbt/ghpages"
- run: sbt -v test makeSite
- uses: webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e # v0.8.0
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY_1 }}
- name: Push to gh-pages
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
run: |
git config --global user.email "74864734+foundweekends-bot[bot]@users.noreply.github.com"
git config --global user.name "foundweekends-bot[bot]"
# https://github.com/sbt/sbt-ghpages/commit/cbedd8edb8
export SBT_GHPAGES_COMMIT_MESSAGE="auto commit on CI https://github.com/foundweekends/foundweekends-website/commit/${{ github.sha }}"
sbt -v ghpagesPushSite