From b6cf22efb722060c5043cf3d628bae85324e67c2 Mon Sep 17 00:00:00 2001 From: Krzysztof Romanowski Date: Tue, 10 Nov 2020 14:59:54 +0100 Subject: [PATCH] wip --- .github/workflows/scala3doc.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/scala3doc.yaml b/.github/workflows/scala3doc.yaml index bf7ecc10882d..f9ac3c1fc252 100644 --- a/.github/workflows/scala3doc.yaml +++ b/.github/workflows/scala3doc.yaml @@ -8,7 +8,6 @@ on: jobs: build: runs-on: ubuntu-latest - container: lampepfl/dotty:2020-04-24 steps: - name: Git Checkout @@ -30,12 +29,6 @@ jobs: with: java-version: 11 - - name: Compile and test - run: ./project/scripts/sbt scala3doc/test - - - name: Locally publish self - run: ./project/scripts/sbt scala3doc/publishLocal - - name: Generate test documentation run: ./project/scripts/sbt scala3doc/generateSelfDocumentation @@ -44,3 +37,14 @@ jobs: - name: Generate documentation for example project using dotty-sbt run: ./project/scripts/sbt "sbt-dotty/scripted sbt-dotty/scala3doc" + + - name: Upload documentation to server + uses: azure/CLI@v1 + env: + AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN }} + with: + inlineScript: | + DOC_DEST=$([ $GITHUB_REF = "refs/heads/master" ] && echo master || echo pr-$(echo $GITHUB_REF | cut '-d/' -f3)) + echo uplading docs to https://scala3doc.virtuslab.com/$DOC_DEST + az storage container create --name $DOC_DEST --account-name scala3docstorage + az storage blob sync -s scala3doc/output -c $DOC_DEST --account-name scala3docstorage