From 0e5cdbb26519a1f052c88ff81d7767717d39ef2a Mon Sep 17 00:00:00 2001 From: IgnatBeresnev Date: Mon, 6 May 2024 13:58:37 +0200 Subject: [PATCH] Publish previews for the ui-showcase test project --- .github/workflows/preview-publish-web-s3.yml | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/preview-publish-web-s3.yml b/.github/workflows/preview-publish-web-s3.yml index d0245b5b8b..93d7269df5 100644 --- a/.github/workflows/preview-publish-web-s3.yml +++ b/.github/workflows/preview-publish-web-s3.yml @@ -63,6 +63,34 @@ jobs: - name: Print link run: echo https://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/serialization/${GITHUB_SHA::7}/index.html + ui-showcase: + runs-on: ubuntu-latest + if: github.repository == 'Kotlin/dokka' + steps: + - name: Checkout dokka + uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 17 + - uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + - name: Generate ui-showcase documentation + run: ./gradlew :dokka-integration-tests:gradle:testUiShowcaseProject + env: + DOKKA_TEST_OUTPUT_PATH: /home/runner/work/dokka/ui-showcase + - name: Configure AWS credentials for S3 access + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: eu-central-1 + - name: Copy files to dokka's S3 bucket + run: ./dokka-integration-tests/aws_sync.sh s3://${{ env.bucket-name }} ui-showcase ../ui-showcase + - name: Print link + run: echo https://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/ui-showcase/${GITHUB_SHA::7}/index.html + biojava: runs-on: ubuntu-latest if: github.repository == 'Kotlin/dokka'