Skip to content

Merge remote-tracking branch 'origin/main' #14

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #14

Workflow file for this run

name: tag a new snapshot version
on:
push: { }
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Fetch history
run: git fetch --prune --unshallow
- name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'corretto'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: build testing environment
run: |
export AWS_ACCESS_KEY_ID="AWS_ACCESS_KEY_ID"
export AWS_SECRET_ACCESS_KEY="AWS_SECRET_ACCESS_KEY"
export AWS_REGION="eu-central-1"
cd src/test/resources
docker-compose up &
sleep 80s
- name: Build
run: |
mvn clean install -q
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy -Prelease
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}