Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
romanowski committed Nov 11, 2020
1 parent 1bddfc1 commit b6cf22e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/scala3doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: lampepfl/dotty:2020-04-24

steps:
- name: Git Checkout
Expand All @@ -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

Expand All @@ -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

0 comments on commit b6cf22e

Please sign in to comment.