From 82a09064511efc202f8b6c9bc7341f880dc36c66 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Sat, 30 May 2020 20:45:54 +0200 Subject: Add documenting of stdlib and publishing to s3 on branch push --- .github/workflows/s3-snapshots.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/s3-snapshots.yml (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml new file mode 100644 index 00000000..b7610783 --- /dev/null +++ b/.github/workflows/s3-snapshots.yml @@ -0,0 +1,49 @@ +name: S3-snapshots + +on: push + +env: + branch-name: ${GITHUB_REF#refs/heads/} + bucket-name: 'dokka-snapshots' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout dokka + uses: actions/checkout@v2 + with: + path: dokka + + - uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Publish dokka locally + run: ./gradlew clean publishToMavenLocal --stacktrace + working-directory: ./dokka + + - name: Checkout stdlib + uses: actions/checkout@v2 + with: + repository: 'kamildoleglo/kotlin-dokka-stdlib' + ref: 'master' + path: stdlib + + - name: Document stdlib + run: ./gradlew clean callDokka --stacktrace + working-directory: ./stdlib + + - name: Configure AWS credentials for S3 access + uses: aws-actions/configure-aws-credentials@v1 + 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: | + aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/prev + aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/prev + aws s3 sync ./stdlib/build/dokka s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/latest -- cgit From 12150420c6a384bcb673d2e6d520913d47f61180 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 16 Jun 2020 12:35:17 +0200 Subject: Document coroutines, temporarily disable stdlib --- .github/workflows/s3-snapshots.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index b7610783..dbd10d29 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -7,9 +7,8 @@ env: bucket-name: 'dokka-snapshots' jobs: - build: + coroutines: runs-on: ubuntu-latest - steps: - name: Checkout dokka uses: actions/checkout@v2 @@ -24,16 +23,16 @@ jobs: run: ./gradlew clean publishToMavenLocal --stacktrace working-directory: ./dokka - - name: Checkout stdlib + - name: Checkout coroutines uses: actions/checkout@v2 with: - repository: 'kamildoleglo/kotlin-dokka-stdlib' - ref: 'master' - path: stdlib + repository: 'kamildoleglo/kotlinx.coroutines' + ref: 'aws' + path: coroutines - - name: Document stdlib - run: ./gradlew clean callDokka --stacktrace - working-directory: ./stdlib + - name: Document coroutines + run: ./gradlew clean :dokkaCollector --stacktrace + working-directory: ./coroutines - name: Configure AWS credentials for S3 access uses: aws-actions/configure-aws-credentials@v1 @@ -44,6 +43,6 @@ jobs: - name: Copy files to dokka's S3 bucket run: | - aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/prev - aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/prev - aws s3 sync ./stdlib/build/dokka s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/latest + aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/prev + aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/prev + aws s3 sync ./coroutines/build/dokkaCollector s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest -- cgit From 4ac93c20f3936d5824b77a04806a2cdcfbb5e25f Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Wed, 17 Jun 2020 15:08:50 +0200 Subject: Add stdlib s3 publishing --- .github/workflows/s3-snapshots.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index dbd10d29..1afc3633 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -46,3 +46,49 @@ jobs: aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/prev aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/prev aws s3 sync ./coroutines/build/dokkaCollector s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest + - name: Print link + run: echo http://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/coroutines/latest/kotlinx-coroutines-/index.html + + stdlib: + runs-on: ubuntu-latest + steps: + - name: Checkout dokka + uses: actions/checkout@v2 + with: + path: dokka + + - uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Publish dokka locally + run: ./gradlew clean publishToMavenLocal --stacktrace + working-directory: ./dokka + + - name: Checkout stdlib + uses: actions/checkout@v2 + with: + repository: 'kamildoleglo/kotlin-dokka-stdlib' + ref: 'aws' + path: stdlib + + - name: Document stdlib + run: ./gradlew clean callDokka --stacktrace + working-directory: ./stdlib + + - name: Configure AWS credentials for S3 access + uses: aws-actions/configure-aws-credentials@v1 + 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: | + aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/prev + aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/prev + aws s3 sync ./stdlib/build/dokka s3://${{ env.bucket-name }}/${{ env.branch-name }}/stdlib/latest + + - name: Print link + run: echo http://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/stdlib/latest/kotlin-stdlib/kotlin-stdlib/index.html + -- cgit From 14e71e40dfab5f18ccd56b0c015383c0dfb5df51 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 30 Jun 2020 17:34:26 +0200 Subject: Parametrize dokka version in AWS generation --- .github/workflows/s3-snapshots.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index 1afc3633..ac585538 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -23,6 +23,10 @@ jobs: run: ./gradlew clean publishToMavenLocal --stacktrace working-directory: ./dokka + - name: Get current dokka version + run: echo "::set-env name=DOKKA_VERSION::`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2`" + working-directory: ./dokka + - name: Checkout coroutines uses: actions/checkout@v2 with: @@ -31,7 +35,7 @@ jobs: path: coroutines - name: Document coroutines - run: ./gradlew clean :dokkaCollector --stacktrace + run: ./gradlew clean :dokkaCollector -Pdokka_version=$DOKKA_VERSION --stacktrace working-directory: ./coroutines - name: Configure AWS credentials for S3 access @@ -65,6 +69,10 @@ jobs: run: ./gradlew clean publishToMavenLocal --stacktrace working-directory: ./dokka + - name: Get current dokka version + run: echo "::set-env name=DOKKA_VERSION::`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2`" + working-directory: ./dokka + - name: Checkout stdlib uses: actions/checkout@v2 with: @@ -73,7 +81,7 @@ jobs: path: stdlib - name: Document stdlib - run: ./gradlew clean callDokka --stacktrace + run: ./gradlew clean callDokka -Pdokka_version=$DOKKA_VERSION --stacktrace working-directory: ./stdlib - name: Configure AWS credentials for S3 access -- cgit From 7d08a539c1c59e4c5a0cbc26a5fbe363242e7936 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Fri, 3 Jul 2020 11:24:40 +0200 Subject: Document a javadoc project on AWS --- .github/workflows/s3-snapshots.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index ac585538..38163d61 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -100,3 +100,50 @@ jobs: - name: Print link run: echo http://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/stdlib/latest/kotlin-stdlib/kotlin-stdlib/index.html + biojava: + runs-on: ubuntu-latest + steps: + - name: Checkout dokka + uses: actions/checkout@v2 + with: + path: dokka + + - uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Publish dokka locally + run: ./gradlew clean publishToMavenLocal --stacktrace + working-directory: ./dokka + + - name: Get current dokka version + run: echo "::set-env name=DOKKA_VERSION::`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2`" + working-directory: ./dokka + + - name: Checkout biojava + uses: actions/checkout@v2 + with: + repository: 'kamildoleglo/biojava' + ref: 'aws' + path: biojava + + - name: Document biojava-core + run: mvn site -pl biojava-core "-Ddokka-version=0.11.0-SNAPSHOT" + working-directory: ./biojava + + - name: Configure AWS credentials for S3 access + uses: aws-actions/configure-aws-credentials@v1 + 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: | + aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/biojava/prev + aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/biojava/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/biojava/prev + aws s3 sync ./biojava/biojava-core/target/dokkaJavadoc s3://${{ env.bucket-name }}/${{ env.branch-name }}/biojava/latest + + - name: Print link + run: echo http://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/biojava/latest/index.html + -- cgit From edacdb9f247ef1546c525d783b17b15b6c99f3a2 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Thu, 9 Jul 2020 13:58:47 +0200 Subject: Make GHActions use multimodule configuration for coroutines --- .github/workflows/s3-snapshots.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index 38163d61..9d58d525 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -35,7 +35,7 @@ jobs: path: coroutines - name: Document coroutines - run: ./gradlew clean :dokkaCollector -Pdokka_version=$DOKKA_VERSION --stacktrace + run: ./gradlew clean dokka dokkaMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace working-directory: ./coroutines - name: Configure AWS credentials for S3 access -- cgit From 08bf7b3c3ec70563b257c03a7dd46d1146982735 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Fri, 10 Jul 2020 14:40:46 +0200 Subject: Change published directory name --- .github/workflows/s3-snapshots.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index 9d58d525..6af1e781 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -49,7 +49,7 @@ jobs: run: | aws s3 --recursive rm s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/prev aws s3 --recursive mv s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/prev - aws s3 sync ./coroutines/build/dokkaCollector s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest + aws s3 sync ./coroutines/build/dokka s3://${{ env.bucket-name }}/${{ env.branch-name }}/coroutines/latest - name: Print link run: echo http://dokka-snapshots.s3.eu-central-1.amazonaws.com/${{ env.branch-name }}/coroutines/latest/kotlinx-coroutines-/index.html -- cgit From 81303613245d432a6187fafdab70bac296545c9f Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Fri, 10 Jul 2020 18:20:05 +0200 Subject: Adapt s3-snapshots.yml --- .github/workflows/s3-snapshots.yml | 2 +- integration-tests/gradle/projects/it-basic/build.gradle.kts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index 6af1e781..59058310 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -35,7 +35,7 @@ jobs: path: coroutines - name: Document coroutines - run: ./gradlew clean dokka dokkaMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace + run: ./gradlew clean dokka dokkaHtmlMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace working-directory: ./coroutines - name: Configure AWS credentials for S3 access diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts index e5a44555..c6fd29b7 100644 --- a/integration-tests/gradle/projects/it-basic/build.gradle.kts +++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts @@ -8,4 +8,3 @@ apply(from = "../template.root.gradle.kts") dependencies { implementation(kotlin("stdlib")) } - -- cgit From ec8cb8223f20e4c953f6b39e611842eabab81c3b Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Mon, 13 Jul 2020 08:34:05 +0200 Subject: Adapt s3-snapshots.yml (coroutines) for new configuration --- .github/workflows/s3-snapshots.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index 59058310..2fcef2c2 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -35,7 +35,7 @@ jobs: path: coroutines - name: Document coroutines - run: ./gradlew clean dokka dokkaHtmlMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace + run: ./gradlew clean dokkaHtml dokkaHtmlMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace working-directory: ./coroutines - name: Configure AWS credentials for S3 access -- cgit From ebdc9a8f144dc980fa2298d5db7fbdd95c409050 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 13 Jul 2020 19:43:31 +0200 Subject: Run only the root dokkaMultimodule task --- .github/workflows/s3-snapshots.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/s3-snapshots.yml') diff --git a/.github/workflows/s3-snapshots.yml b/.github/workflows/s3-snapshots.yml index 2fcef2c2..354ee20f 100644 --- a/.github/workflows/s3-snapshots.yml +++ b/.github/workflows/s3-snapshots.yml @@ -35,7 +35,7 @@ jobs: path: coroutines - name: Document coroutines - run: ./gradlew clean dokkaHtml dokkaHtmlMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace + run: ./gradlew clean dokkaHtml :dokkaHtmlMultimodule -Pdokka_version=$DOKKA_VERSION --stacktrace working-directory: ./coroutines - name: Configure AWS credentials for S3 access @@ -128,7 +128,7 @@ jobs: path: biojava - name: Document biojava-core - run: mvn site -pl biojava-core "-Ddokka-version=0.11.0-SNAPSHOT" + run: mvn site -pl biojava-core "-Ddokka-version=$DOKKA_VERSION" working-directory: ./biojava - name: Configure AWS credentials for S3 access -- cgit