Skip to content

ci

ci #1974

Workflow file for this run

name: ci
on:
push:
pull_request:
schedule:
- cron: '0 9 * * *'
jobs:
test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- uses: actions/checkout@v4
- run: sbt -v -Dfile.encoding=UTF8 "+test" testConscript
- uses: webfactory/[email protected]
if: ${{ github.repository_owner == 'foundweekends' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY_1 }}
- name: Push to gh-pages
if: ${{ github.repository_owner == 'foundweekends' && github.ref == 'refs/heads/master' && 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/pamflet/commit/${{ github.sha }}"
sbt -v ghpagesPushSite