-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (35 loc) · 1.23 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
28
29
30
31
32
33
34
35
name: ci
on:
push:
pull_request:
schedule:
- cron: '0 1 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'unfiltered' }}
steps:
- uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
java-version: 11
distribution: temurin
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- run: sbt -v compile paradox
- run: sudo apt-get install tree
- run: tree target
- uses: webfactory/[email protected]
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY_1 }}
- name: Push to gh-pages
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
run: |
git config --global user.email "74865306+unfiltered-app[bot]@users.noreply.github.com"
git config --global user.name "unfiltered-app[bot]"
# https://github.com/sbt/sbt-ghpages/commit/cbedd8edb8
export SBT_GHPAGES_COMMIT_MESSAGE="auto commit on CI https://github.com/unfiltered/website/commit/${{ github.sha }}"
sbt -v ghpagesPushSite