File tree 3 files changed +38
-12
lines changed
3 files changed +38
-12
lines changed Original file line number Diff line number Diff line change 45
45
if : ${{ steps.diff.outputs.all_modified_files }}
46
46
run : python3 -m unittest discover -bs .github/scripts
47
47
48
+ readme-links-test :
49
+ needs : [choose-dry-runs]
50
+ uses : ./.github/workflows/test-readme-links.yml
51
+
48
52
choose-dry-runs :
49
53
runs-on : ubuntu-latest
50
54
outputs :
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ defaults:
20
20
run :
21
21
shell : bash
22
22
23
- env :
24
- JAR_NAME : gradle-enterprise-api-kotlin-SNAPSHOT-javadoc.jar
25
-
26
23
jobs :
27
24
28
25
build-javadoc :
33
30
- name : Build javadoc
34
31
uses : ./.github/actions/build
35
32
with :
36
- tasks : ' javadocJar '
37
- artifact-name : ' javadoc '
38
- path-to-upload : " build/libs/${{ env.JAR_NAME }} "
33
+ tasks : ' dokkaHtml '
34
+ artifact-name : ' docs '
35
+ path-to-upload : " build/dokka/html/**/* "
39
36
40
37
publish-javadoc :
41
38
needs : [build-javadoc]
@@ -45,13 +42,12 @@ jobs:
45
42
uses : actions/checkout@v3
46
43
with :
47
44
ref : gh-pages
48
- - name : Download javadoc
45
+ - name : Delete current javadoc
46
+ run : rm -rf docs
47
+ - name : Download new javadoc
49
48
uses : actions/download-artifact@v3
50
- - name : Unzip javadoc
51
- run : |
52
- rm -rf docs
53
- unzip "javadoc/$JAR_NAME" -d docs
54
- rm -rf javadoc
49
+ with :
50
+ path : ./
55
51
- name : Commit
56
52
run : |
57
53
git config user.name github-actions
Original file line number Diff line number Diff line change
1
+ name : ' Check PR'
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - gh-pages
8
+ workflow_call :
9
+ workflow_dispatch :
10
+
11
+ defaults :
12
+ run :
13
+ shell : bash
14
+
15
+ jobs :
16
+
17
+ test-readme-links :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v3
22
+ - name : Check README links
23
+ uses : gaurav-nelson/github-action-markdown-link-check@v1
24
+ with :
25
+ folder-path : .
26
+ max-depth : 1
You can’t perform that action at this time.
0 commit comments