Merge pull request #137 from ReneeVandervelde/update-docs-post-arm32 #25
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: Release | |
on: | |
push: | |
tags: ['*'] | |
env: | |
GITHUB_TAG: ${{ github.ref }} | |
jobs: | |
tests: | |
name: Test | |
uses: inkapplications/.github/.github/workflows/kmp-checks.yml@1.1.0 | |
verify-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- | |
name: Docs Requirements | |
run: > | |
./gradlew dokkaHtmlMultiModule -Pversion=latest && | |
if [[ $(git status --porcelain) ]]; then | |
echo "Docs are out of date!" && exit 1; | |
else | |
echo "Docs are current" && exit 0; | |
fi | |
publish: | |
name: Publish to Maven Central | |
needs: [tests, verify-docs] | |
secrets: inherit | |
uses: inkapplications/.github/.github/workflows/kmp-maven-publish.yml@1.1.0 | |
with: | |
version: ${{ github.ref_name }} | |
draft-release: false | |
publish-linux-arm64: false | |
publish-android-native-arm32: false | |
publish-android-native-arm64: false | |
publish-android-native-x86: false | |
publish-android-native-x64: false | |
publish-ios-simulator-arm64: false | |
publish-watchos-simulator-arm64: false | |
publish-watchos-arm32: false | |
publish-tvos-simulator-arm64: false | |
publish-watchos-device-arm64: false | |
draft-release: | |
name: Draft Github Release | |
needs: [publish] | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- | |
name: Build Archives | |
run: ./gradlew cli:assembleDist -Pversion=${{ github.ref_name }} | |
- | |
name: Prepare Archives | |
run: cp cli/build/distributions/shade-*.zip cli/build/distributions/shade.zip && cp cli/build/distributions/shade-*.tar cli/build/distributions/shade.tar | |
- | |
name: Prepare Changelog Text | |
run: mkdir -p build && sed '1,/---/d' CHANGELOG.md | awk '/---/{exit}1' | sed '$d' > build/RELEASE.md | |
- | |
name: Create Release | |
id: create_release | |
uses: actions/create-release@v1.1.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref_name }} | |
draft: true | |
prerelease: false | |
body_path: build/RELEASE.md | |
- | |
name: Upload Cli Tar | |
uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: cli/build/distributions/shade.tar | |
asset_name: shade.tar | |
asset_content_type: application/x-tar | |
- | |
name: Upload Cli Zip | |
uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: cli/build/distributions/shade.zip | |
asset_name: shade.zip | |
asset_content_type: application/zip |