-
Notifications
You must be signed in to change notification settings - Fork 27
27 lines (27 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: ci
on:
push:
pull_request:
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