Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Setup jar publishing workflow #9

Setup jar publishing workflow

Setup jar publishing workflow #9

Workflow file for this run

name: Java CI
on: [ push ]
permissions:
id-token: write
contents: read
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'main') }}
env:
AWS: "aws"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout self
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-west-2
role-to-assume: arn:aws:iam::194159489498:role/GithubActionsInstallHudiForGatewayC-RepositoryRole-182NI133SRXP0
role-session-name: HudiInstallSession
role-duration-seconds: 900
- name: Set Env
run: echo "CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain onehouse --domain-owner 194159489498 --query authorizationToken --output text)" >> $GITHUB_ENV
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
architecture: x64
cache: maven
server-id: codeartifact
server-username: AWS
server-password: CODEARTIFACT_AUTH_TOKEN
- name: Build with Maven
run: mvn clean install -DskipTests -ntp -B -T 4