File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
- container : lampepfl/dotty:2020-04-24
12
11
13
12
steps :
14
13
- name : Git Checkout
44
43
45
44
- name : Generate documentation for example project using dotty-sbt
46
45
run : ./project/scripts/sbt "sbt-dotty/scripted sbt-dotty/scala3doc"
46
+
47
+ - name : Upload documentation to server
48
+ uses : azure/CLI@v1
49
+ env :
50
+ AZURE_STORAGE_SAS_TOKEN : ${{ secrets.AZURE_STORAGE_SAS_TOKEN }}
51
+ with :
52
+ inlineScript : |
53
+ DOC_DEST=$([ $GITHUB_REF = "refs/heads/master" ] && echo master || echo pr-$(echo $GITHUB_REF | cut '-d/' -f3))
54
+ echo uplading docs to https://scala3doc.virtuslab.com/$DOC_DEST
55
+ az storage container create --name $DOC_DEST --account-name scala3docstorage --public-access container
56
+ az storage blob sync -s scala3doc/output -c $DOC_DEST --account-name scala3docstorage
Original file line number Diff line number Diff line change @@ -60,16 +60,18 @@ work on the project.
60
60
For every PR, we build documentation for Scala3doc and Dotty. For example, for
61
61
PR 123 you can find them at:
62
62
63
- - < https://scala3doc.s3.eu-central-1.amazonaws.com/pr-123/self/main/index.html >
64
- - < https://scala3doc.s3.eu-central-1.amazonaws.com/pr-123/stdLib/main/index.html >
63
+ - < https://scala3doc.virtuslab.com/pr-123/self/main/index.html >
64
+ - < https://scala3doc.virtuslab.com/pr-123/scala3/main/index.html >
65
+ - < https://scala3doc.virtuslab.com/pr-123/testcases/main/index.html >
65
66
66
67
Note that these correspond to the contents of ` output ` directory - that's
67
68
precisely what they are.
68
69
69
70
You can also find the result of building the same sites for latest ` master ` at:
70
71
71
- - < https://scala3doc.s3.eu-central-1.amazonaws.com/pr-master/self/main/index.html >
72
- - < https://scala3doc.s3.eu-central-1.amazonaws.com/pr-master/stdLib/main/index.html >
72
+ - < https://scala3doc.virtuslab.com/master/self/main/index.html >
73
+ - < https://scala3doc.virtuslab.com/master/scala3/main/index.html >
74
+ - < https://scala3doc.virtuslab.com/master/testcases/main/index.html >
73
75
74
76
### Testing
75
77
You can’t perform that action at this time.
0 commit comments