Update sbt to 1.9.3 #461
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- uses: coursier/cache-action@d1039466d0812d6370649b9afb02bbf5f646bacf # v6.4.3 | |
- 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 |