File tree 4 files changed +121
-0
lines changed
4 files changed +121
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : gradle
4
+ directory : /
5
+ schedule :
6
+ interval : daily
Original file line number Diff line number Diff line change
1
+ name : Continuous Integration
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - uses : actions/setup-java@v2
19
+ with :
20
+ distribution : temurin
21
+ java-version : 11
22
+ - uses : android-actions/setup-android@v2
23
+ - uses : gradle/gradle-build-action@v2
24
+ with :
25
+ arguments : build
26
+
27
+ gradle-wrapper-validation :
28
+
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ - uses : actions/checkout@v2
33
+ - uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change
1
+ name : Dokka
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build :
8
+
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ path : main
15
+ - uses : actions/checkout@v2
16
+ with :
17
+ ref : gh-docs
18
+ path : gh-docs
19
+ - uses : actions/setup-java@v2
20
+ with :
21
+ distribution : temurin
22
+ java-version : 11
23
+ - uses : gradle/gradle-build-action@v2
24
+ with :
25
+ build-root-directory : main
26
+ arguments : dokkaGfm
27
+ - name : Copy
28
+ run : |
29
+ rm -rf gh-docs/dokka/
30
+ names=()
31
+ for src in main/**/build/dokka/gfm; do
32
+ name=${src#main}
33
+ name=${name%/build/dokka/gfm}
34
+ name=${name#/}
35
+ names+=("$name")
36
+ mkdir -p "gh-docs/dokka/$name"
37
+ rsync --recursive --verbose "main/$name/build/dokka/gfm/" "gh-docs/dokka/$name"
38
+ done
39
+ for name in "${names[@]}"; do
40
+ printf '[%s](dokka/%s)\n' "$name" "$name"
41
+ done > gh-docs/dokka.md
42
+ - name : Commit
43
+ uses : EndBug/add-and-commit@v9
44
+ with :
45
+ cwd : gh-docs
46
+ message : ' Dokka ${{ github.sha }}'
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - created
7
+
8
+ jobs :
9
+ build :
10
+
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/setup-java@v2
16
+ with :
17
+ distribution : temurin
18
+ java-version : 11
19
+ - uses : android-actions/setup-android@v2
20
+ - id : tag
21
+ name : Extract tag name
22
+ uses : actions/github-script@v2
23
+ with :
24
+ script : |
25
+ const tagNS = "refs/tags/";
26
+ const ref = context.ref;
27
+ return ref && ref.startsWith(tagNS)
28
+ ? ref.substr(tagNS.length + (ref[tagNS.length] == "v"))
29
+ : '';
30
+ result-encoding : string
31
+ - uses : gradle/gradle-build-action@v2
32
+ with :
33
+ arguments : -Pversion=${{ steps.tag.outputs.result }} publishAllPublicationsToGitHubPackagesRepository
34
+ env :
35
+ ORG_GRADLE_PROJECT_GitHubPackagesUsername : ${{ github.actor }}
36
+ ORG_GRADLE_PROJECT_GitHubPackagesPassword : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments