update cache action to v4 #110
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: ["v*"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 11 | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Check/Compile/Test | |
| run: sbt versionCheck check | |
| - name: Release | |
| env: | |
| PGP_SECRET: ${{ secrets.PGP_SECRET_2024 }} | |
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE_2024 }} | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| run: sbt ci-release | |
| - uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gems | |
| restore-keys: | | |
| ${{ runner.os }}-gems | |
| - uses: actions/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.0' | |
| - name: Install jekyll | |
| run: | | |
| export GEM_HOME=${PWD}/vendor/bundle | |
| gem install jekyll -v 4.0.0 | |
| - name: Publish Microsite | |
| env: | |
| DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
| GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" | |
| run: | | |
| eval "$(ssh-agent -s)" | |
| ssh-add - <<< "${DEPLOY_KEY}" | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "scala-server-toolkit bot" | |
| export PATH="${PWD}/vendor/bundle/bin:$PATH" | |
| export GEM_HOME=${PWD}/vendor/bundle | |
| sbt site/publishMicrosite |