From c1f2f22de3feb80b93f7ab43402366c9ba550e86 Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Fri, 1 Dec 2023 17:46:40 +0000 Subject: [PATCH] WIP: Automated release --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5bbfcd7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release +on: + workflow_dispatch: + +jobs: + release: + name: Release + runs-on: ubuntu-latest + env: + PGP_PASSPHRASE: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_PASSPHRASE }} + SONATYPE_USERNAME: guardian.automated.maven.release + SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: corretto + java-version: 17 + cache: sbt + gpg-private-key: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }} + gpg-passphrase: PGP_PASSPHRASE + - run: git config user.email "automated.maven.release.noreply@theguardian.com" + - run: git config user.name "Guardian Automated Maven Release" + - name: Publish the release + run: sbt "release with-defaults" \ No newline at end of file