Skip to content

Set version to 3.3.0-RC1 (#1300) #56

Set version to 3.3.0-RC1 (#1300)

Set version to 3.3.0-RC1 (#1300) #56

Workflow file for this run

name: Release
on:
push:
tags:
- v2.3.*
- v2.4.*
- v3.0.*
- v3.1.*
- v3.2.*
- v3.3.*
env:
# https://github.com/actions/checkout/issues/440#issuecomment-854240996
AWS_EC2_METADATA_DISABLED: true
permissions:
contents: read
jobs:
build:
name: Release
strategy:
matrix:
version: [ 17.0.12 ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.version }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.version }}
cache: maven
server-id: ossrh-awspring
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Run tests
run: ./mvnw -V verify javadoc:aggregate -Pspring,docs-classic
- name: Deploy to Sonatype
run: ./mvnw -V -Prelease,spring deploy -DskipTests
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: Upload to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_KEY }}
run: |
aws s3 sync --acl public-read docs/target/generated-docs/ s3://awspring-docs/spring-cloud-aws/docs/
aws s3 sync --acl public-read target/site/ s3://awspring-docs/spring-cloud-aws/docs/
aws cloudfront create-invalidation --distribution-id EA7LER7CI960A --paths "/*"