More fixes to Writing Methods #172
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: Continuous Integration | |
on: | |
pull_request: | |
branches: ['**', '!update/**'] | |
push: | |
branches: ['**', '!update/**'] | |
tags: [v*] | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_CREDENTIAL_HOST: ${{ secrets.SONATYPE_CREDENTIAL_HOST }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
site: | |
name: Generate Site | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
scala: [3.3.0] | |
java: [temurin@11] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout current branch (full) | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Download Java (temurin@11) | |
id: download-java-temurin-11 | |
if: matrix.java == 'temurin@11' | |
uses: typelevel/download-java@v1 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Java (temurin@11) | |
if: matrix.java == 'temurin@11' | |
uses: actions/setup-java@v2 | |
with: | |
distribution: jdkfile | |
java-version: 11 | |
jdkFile: ${{ steps.download-java-temurin-11.outputs.jdkFile }} | |
- name: Cache sbt | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.sbt | |
~/.ivy2/cache | |
~/.coursier/cache/v1 | |
~/.cache/coursier/v1 | |
~/AppData/Local/Coursier/Cache/v1 | |
~/Library/Caches/Coursier/v1 | |
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Generate site | |
run: sbt '++${{ matrix.scala }}' build | |
- name: Publish site | |
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' | |
uses: peaceiris/actions-gh-pages@v3.8.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: book/target/creative-scala | |
keep_files: true |