Skip to content

Commit

Permalink
Merge pull request #456 from jsteinich/github_maven_prerelease
Browse files Browse the repository at this point in the history
GitHub maven prerelease
  • Loading branch information
skorfmann authored Dec 4, 2020
2 parents 50e9c44 + ee7d131 commit 38218d8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/release_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,24 @@ jobs:
run: npx -p jsii-release jsii-release-pypi
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
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 }}"

0 comments on commit 38218d8

Please sign in to comment.