Skip to content

Commit

Permalink
Concurrency of GH jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Oct 24, 2024
1 parent 1f8f0e4 commit e213d01
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: ["*"]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
JAVA_OPTS: "-Xmx4G"

Expand Down Expand Up @@ -33,21 +37,6 @@ jobs:
- name: Test publishing
run: sbt --client publishLocal

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'sbt'

- name: Publish ${{ github.ref }}
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main'))
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

publish:
needs: [build]
strategy:
Expand Down

0 comments on commit e213d01

Please sign in to comment.