feat: Split documentation into better sections #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
tags: | |
- '2.*' | |
concurrency: | |
group: "publish" | |
cancel-in-progress: true | |
jobs: | |
publish: | |
runs-on: macos-latest | |
environment: publishing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
check-latest: true | |
java-version: 21 | |
cache: 'gradle' | |
- name: Validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest | |
- name: Create local properties | |
env: | |
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} | |
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties | |
- name: Assemble android sample | |
run: ./gradlew :sample:assembleRelease | |
- name: Publish to sonatype | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
# It's important to not upload in parallel or duplicate repos will be created | |
# repository creds are broken with gradle 8.6 https://github.com/gradle/gradle/issues/24040 | |
run: ./gradlew publishAllPublicationsToSonatypeRepository -Dorg.gradle.parallel=false --stacktrace --no-configuration-cache | |
- name: Generate Changelog | |
uses: mikepenz/release-changelog-builder-action@v4 | |
id: build_changelog | |
with: | |
commitMode: true | |
configurationJson: | | |
{ | |
"template": "#{{CHANGELOG}}", | |
"pr_template": "- #{{TITLE}}\n", | |
"categories": [ | |
{ | |
"title": "## Feature", | |
"labels": ["feat", "feature"] | |
}, | |
{ | |
"title": "## Fix", | |
"labels": ["fix", "bug"] | |
}, | |
{ | |
"title": "## Other", | |
"labels": [] | |
}, | |
{ | |
"title": "## Docs", | |
"labels": ["doc", "docs"] | |
} | |
], | |
"label_extractor": [ | |
{ | |
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)", | |
"target": "$1" | |
} | |
] | |
} | |
- name: Create GH release | |
uses: ncipollo/[email protected] | |
id: create_release | |
with: | |
draft: true | |
artifactErrorsFailBuild: true | |
prerelease: false | |
tag: ${{ github.ref }} | |
artifacts: sample/androidApp/build/outputs/apk/release/pro.respawn.flowmvi.sample.apk | |
body: ${{steps.build_changelog.outputs.changelog}} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |