Migrate from akka to pekko #6
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- "*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: corretto | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2 | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Set SBT_OPTS | |
run: bash generate_sbt_opts.sh | |
- name: Build | |
run: sbt package | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: jars | |
path: '*/target/*.jar' | |
retention-days: 1 | |
- name: Test | |
run: sbt test | |
publish: | |
if: ${{ github.event_name != 'pull_request' }} && (github.repository == 'lucidsoftware/pekko-thread-context') | |
needs: build | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2 | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Set SBT_OPTS | |
run: bash generate_sbt_opts.sh | |
- name: Publish to Sonatype | |
run: bash publish.sh | |
env: | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
release: | |
if: ${{ startsWith(github.ref, 'refs/tags') && (github.repository == 'lucidsoftware/pekko-thread-context') }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download Artifacts | |
uses: actions/download-artifacts@v3 | |
with: | |
name: jars | |
- name: Upload Assets | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: bash release.sh |