v0.11.7 #1
Workflow file for this run
This file contains hidden or 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: Release metrics | |
| on: | |
| release: | |
| types: [ published ] | |
| jobs: | |
| artifact-size-metrics: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Configure Gradle | |
| uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main | |
| - name: Build | |
| shell: bash | |
| run: | | |
| echo "FIXME: Enable K/N builds - then capture KN artifact metrics" | |
| ./gradlew -Paws.kotlin.native=false build --parallel | |
| ./gradlew -Paws.kotlin.native=false publishAllPublicationsToTestLocalRepository --parallel | |
| - name: Configure credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
| aws-region: us-west-2 | |
| - name: Calculate and upload metrics | |
| uses: awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/calculate-and-upload@main | |
| with: | |
| upload: 'true' | |
| release_metrics: 'true' | |
| permissions: | |
| id-token: write | |
| contents: read |