diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a26e1a..b577fdc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,24 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - - name: Setup JDK And SBT + - name: Install JDK 21 uses: actions/setup-java@v4 with: - java-version: '17' - distribution: 'adopt' + distribution: temurin + java-version: 21 cache: sbt + - name: Install gnupg + run: sudo apt update && sudo apt install -y gnupg + + - name: Import PGP secret + run: echo "${{ secrets.PGP_SECRET }}" | base64 --decode | gpg --batch --import + + - name: Refresh version tag + run: git pull --tags + - name: Publish to Maven Repository run: sbt clean ci-release env: