Skip to content

Merge pull request #131 from ReneeVandervelde/release-updates #20

Merge pull request #131 from ReneeVandervelde/release-updates

Merge pull request #131 from ReneeVandervelde/release-updates #20

Workflow file for this run

name: Release
on:
push:
tags: ['*']
env:
GITHUB_TAG: ${{ github.ref }}
jobs:
tests:
name: Test
uses: inkapplications/.github/.github/workflows/[email protected]
verify-docs:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/[email protected]
-
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/[email protected]
with:
version: ${{ github.ref_name }}
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/[email protected]
-
name: Build Archives
run: ./gradlew cli:assembleDist
-
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: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref_name }}
draft: true
prerelease: false
body: "See CHANGELOG.md for details"
-
name: Upload Cli Tar
uses: actions/[email protected]
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/[email protected]
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