diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index ebffee4f8..c0257514c 100755 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -e -sbt ++2.13.4 ci-release \ No newline at end of file +sbt ++2.13.8 ci-release \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8ae1afd4..86f44bff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,21 +1,19 @@ -name: release +name: Release on: push: - branches: - - master + branches: [master] tags: ["*"] jobs: publish: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: olafurpg/setup-scala@v10 - - uses: olafurpg/setup-gpg@v3 - - name: Publish ${{ github.ref }} - run: | - ./.github/scripts/release.sh + - uses: actions/checkout@v3.0.2 + with: + fetch-depth: 0 + - uses: olafurpg/setup-scala@v13 + - 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 }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} \ No newline at end of file