-
Notifications
You must be signed in to change notification settings - Fork 91
feat(v2): publish snapshots #1655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
43e1784
Initial commit
scottgerring 79a6ee8
Add distributionManagement back
scottgerring 127ed82
Switch to environment variables
scottgerring 2780ab0
Enforcer should work
scottgerring 5990f73
Re-enable GPG
scottgerring 7ea6f14
Change user/password for publish
scottgerring b707ca4
Missing config?
scottgerring b36e724
Skip SAM example for deploy
scottgerring d55f4e7
Another missing one
scottgerring b5a95b7
Publish preview docs
scottgerring d323c74
Merge branch 'v2' into feat/v2-publish-snapshots
scottgerring 60a3fec
Update docs accordingly
scottgerring 1c99c33
Exclude intentional constructor throw from spotbugs
scottgerring 0505a81
More new spotbugs?
scottgerring 776d7ce
Block new spotbugs rules
scottgerring 8658d70
Remove PR push triggers
scottgerring 1ce1083
Again but properly
scottgerring d0e0aaf
Merge branch 'v2' into feat/v2-publish-snapshots
jeromevdl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Docs | ||
on: | ||
push: | ||
branches: | ||
- v2 | ||
workflow_dispatch: {} | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
pages: write | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
environment: Docs | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- name: Set up Python | ||
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1 | ||
with: | ||
python-version: "3.8" | ||
- name: Capture branch and tag | ||
id: branch_name | ||
run: | | ||
echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
- name: Build docs website | ||
run: | | ||
make build-docs-website | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef | ||
with: | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ secrets.AWS_DOCS_ROLE_ARN }} | ||
- name: Deploy Docs | ||
run: | | ||
aws s3 sync \ | ||
dist \ | ||
s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-java/preview/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish v2 | ||
on: | ||
push: | ||
branches: | ||
- v2 | ||
workflow_dispatch: {} | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
environment: snapshot | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- name: Set up Maven Central Repository | ||
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 | ||
with: | ||
distribution: 'corretto' | ||
java-version: 11 | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
# TODO: use environments https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment | ||
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- name: Publish package | ||
run: mvn -Prelease clean validate deploy -DskipTests # We use validate here to run maven enforcer, to make sure we are only publishing SNAPSHOT builds | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.SNAPSHOT_PUBLISH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.SNAPSHOT_PUBLISH_PASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
powertools-idempotency/powertools-idempotency-dynamodb/dynamodb-local-metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"installationId":"e43b8515-8484-485c-8315-bead4568972b","telemetryEnabled":"true"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.