File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ name: Build
66on : [push, pull_request]
77
88jobs :
9- validation :
10- name : " Gradle Validation"
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v3
14- - uses : gradle/wrapper-validation-action@v1
159 build :
1610 needs :
1711 - validation
2317 with :
2418 java-version : ' 11'
2519 distribution : ' zulu'
20+ - name : Login to CodeArtifact
21+ run : |
22+ export CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token \
23+ --domain ${{ vars.CODEARTIFACT_DOMAIN }} \
24+ --domain-owner ${{ vars.CODEARTIFACT_DOMAIN_OWNER }} \
25+ --region ${{ env.AWS_REGION }} \
26+ --query authorizationToken \
27+ --output text)
28+ cat <<EOS > gradle.properties
29+ mavenUrl=${{ vars.CODEARTIFACT_DOMAIN }}-${{ vars.CODEARTIFACT_DOMAIN_OWNER }}.d.codeartifact.${{ env.AWS_REGION }}.amazonaws.com/maven/java
30+ mavenUser=aws
31+ mavenPassword=$CODEARTIFACT_AUTH_TOKEN
32+ EOS
2633 - name : Grant execute permission for gradlew
2734 run : chmod +x gradlew
2835 - name : Build with Gradle
You can’t perform that action at this time.
0 commit comments