Skip to content

Commit

Permalink
Publish previews of the ui-showcase test project (#3600)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed May 6, 2024
1 parent b63e34a commit 0aa88bf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/preview-publish-web-s3.yml
Expand Up @@ -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'
Expand Down

0 comments on commit 0aa88bf

Please sign in to comment.