Skip to content

Commit

Permalink
Merge pull request #96 from ReneeVandervelde/master
Browse files Browse the repository at this point in the history
Build upgrades / prepare for release
  • Loading branch information
ReneeVandervelde authored Apr 30, 2023
2 parents 83e0b7a + e2beae1 commit d690a57
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 849 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
uses: actions/[email protected]
-
name: Unit Tests
run: ./gradlew jvmTest test
run: ./gradlew check

44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ jobs:
-
name: JVM Tests
run: ./gradlew jvmTest
-
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
common:
runs-on: ubuntu-latest
needs: tests
steps:
-
name: Checkout
Expand All @@ -35,6 +45,37 @@ jobs:
-
name: Build JS Publication
run: ./gradlew publishJsPublicationToBuildRepository -Pversion=${GITHUB_TAG/refs\/tags\//}
-
name: Create GitHub Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false
-
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
-
name: Maven Publish
env:
Expand All @@ -53,6 +94,7 @@ jobs:
linux:
runs-on: ubuntu-latest
needs: tests
steps:
-
name: Checkout
Expand Down Expand Up @@ -82,6 +124,7 @@ jobs:
windows:
runs-on: windows-latest
needs: tests
steps:
-
name: Checkout
Expand Down Expand Up @@ -112,6 +155,7 @@ jobs:
--project-prop version=${GITHUB_TAG/refs\/tags\//}
macos:
runs-on: macos-latest
needs: tests
steps:
-
name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: actions/[email protected]
-
name: Build
run: ./gradlew build
run: ./gradlew build check
-
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
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/v2_snapshots.yml

This file was deleted.

38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
Change Log
==========

2.0.0
-----

This major release of the SDK contains breaking changes required to support
Kotlin Multiplatform as well as the [v2 endpoints] of the Hue API. Please
refer to the [docs] for new setup instructions.

The new SDK contains more thorough documentation as well as a published API
reference.

### Supported Modules:

- Bridge Discovery
- Light Control
- Grouped Lights
- Rooms
- Zones

### Supported Platforms:
- jvm
- js (IR + Legacy)
- nodejs
- - browser
- iosArm64
- iosX64
- watchosArm32
- watchosArm64
- watchosX64
- tvosArm64
- tvosX64
- macosX64
- macosArm64
- linuxX64
- mingwX64

[v2 endpoints]: https://developers.meethue.com/develop/hue-api-v2/api-reference/
[docs]: https://shade.lighting/

1.2.0
-----

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2019 Ink Applications
Copyright 2019-2023 Ink Applications

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
kotlin {
jvm()

js {
js(BOTH) {
nodejs()
browser()
}
Expand Down
6 changes: 3 additions & 3 deletions gradle/versions/ink.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[versions]
kimchi = "2.0.0"
kimchi = "2.0.3"

[libraries.publishing]
version = "1.0.0"
version = "1.0.1"
module = "com.inkapplications.publishing:ink-publishing"

[libraries.spondee]
version = "1.0.0"
version = "1.3.0"
module = "com.inkapplications.spondee:units"

[libraries.kimchi-logger]
Expand Down
Loading

0 comments on commit d690a57

Please sign in to comment.