Skip to content

Migrate from akka to pekko #3

Migrate from akka to pekko

Migrate from akka to pekko #3

Workflow file for this run

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: |
set -x
 tag="${GITHUB_REF#refs/tags/}"

Check failure on line 71 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 71
 targets=($(printf -- "-a %s " */target/*.jar))
 hub release create "${targets[@]}" -m "Release $tag" $tag