This repository has been archived by the owner on May 2, 2024. It is now read-only.
Fix permissions #5
This file contains 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
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: '11' | |
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 |