From 14e02c6fc048fa0e7769b6b3b8536f58f99bc75a Mon Sep 17 00:00:00 2001 From: Jon Steinich Date: Fri, 4 Dec 2020 13:24:23 +0000 Subject: [PATCH 1/2] publish pre-release to gitthub maven --- .github/workflows/release_next.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_next.yml b/.github/workflows/release_next.yml index d58814724c..7be438eb37 100644 --- a/.github/workflows/release_next.yml +++ b/.github/workflows/release_next.yml @@ -61,4 +61,24 @@ jobs: run: npx -p jsii-release jsii-release-pypi env: TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} \ No newline at end of file + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + + release_maven_github: + name: Release to GitHub Maven + needs: build_artifact + runs-on: ubuntu-latest + container: + image: hashicorp/jsii-terraform + steps: + - name: Download dist + uses: actions/download-artifact@v2 + with: + name: dist + path: dist + - name: Release + run: npx -p jsii-release jsii-release-maven + env: + MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + MAVEN_USERNAME: ${{ github.actor }} + MAVEN_SERVER_ID: github + MAVEN_REPOSITORY_URL: "https://maven.pkg.github.com/${{ github.repository }}" \ No newline at end of file From ee7d1315992bfe4d8f55a361ee0a081f50f39be0 Mon Sep 17 00:00:00 2001 From: Jon Steinich Date: Fri, 4 Dec 2020 13:35:28 +0000 Subject: [PATCH 2/2] change actual release so it matches pre-release --- .github/workflows/release.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae8081e2e4..94516b3b88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,20 +96,17 @@ jobs: release_maven_github: name: Release to GitHub Maven - runs-on: ubuntu-latest needs: build_artifact + runs-on: ubuntu-latest + container: + image: hashicorp/jsii-terraform steps: - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - uses: actions/checkout@v2 - name: Download dist uses: actions/download-artifact@v2 with: name: dist path: dist - - name: Publish package + - name: Release run: npx -p jsii-release jsii-release-maven env: MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}