ci #736
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 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@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- uses: actions/checkout@v4 | |
- 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 |