Skip to content

Commit 5c5a2fc

Browse files
committed
enable docs autogeneration in workflow
1 parent 9455a61 commit 5c5a2fc

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- master
7-
7+
88
pull_request:
99
branches:
1010
- master
11-
11+
1212
release:
1313
types: [created]
1414

@@ -49,12 +49,26 @@ jobs:
4949
# - name: Execute jacocoTestReport
5050
# run: ./gradlew test jacocoTestReport && cp build/reports/jacoco/report.xml jacoco.xml || echo "Code coverage failed"
5151
- name: Build with Gradle
52-
run: ./gradlew build --refresh-dependencies --no-daemon --continue
52+
run: ./gradlew build asciidoctor --refresh-dependencies --no-daemon --continue
53+
- name: Generate Changelog
54+
uses: heinrichreimer/[email protected]
55+
with:
56+
token: ${{ secrets.GITHUB_TOKEN }}
57+
- name: Push Docs and Changelog
58+
uses: github-actions-x/[email protected]
59+
with:
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
61+
push-branch: 'master'
62+
commit-message: 'Automatic docs and changelog generation'
63+
force-add: 'true'
64+
files: CHANGELOG.md docs/
65+
name: ${{ github.actor }}
66+
email: ${{ github.actor }}@users.noreply.github.com
5367
# - name: Push codeCoverage to Codecov
5468
# run: bash <(curl -s https://codecov.io/bash)
5569
- name: Echo credentials
5670
run: echo "bintrayUser=${{secrets.BINTRAY_USER}}" >> gradle.properties
5771
- name: Echo credentials Key
58-
run: echo "bintrayApiKey=${{secrets.BINTRAY_KEY}}" >> gradle.properties && cat gradle.properties
72+
run: echo "bintrayApiKey=${{secrets.BINTRAY_KEY}}" >> gradle.properties && cat gradle.properties
5973
- name: Publish plugin
6074
run: ./gradlew bintrayUpload

0 commit comments

Comments
 (0)