Skip to content

Commit

Permalink
Merge pull request #99 from KakaoCup/compose-1.0.0
Browse files Browse the repository at this point in the history
Compose 1.0.0
  • Loading branch information
Vacxe authored Aug 25, 2024
2 parents 38ca7eb + 8825771 commit 12a553b
Show file tree
Hide file tree
Showing 119 changed files with 3,970 additions and 1,007 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/on-push-master-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Documentation

on:
push:
paths:
- 'documentation/**'
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Change directory to documentation
run: cd documentation

- name: Install dependencies
run: npm install

- name: Build site
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
35 changes: 35 additions & 0 deletions .github/workflows/on-push-master-library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: On Push into Master

on:
push:
paths-ignore:
- 'documentation/**'
branches:
- master

jobs:
deploy-osshr:
name: Deploy to OSSHR
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: [ compose, compose-semantics, compose-test, compose-ui ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
cache: gradle
- uses: little-core-labs/[email protected]

- name: Deploy Snapshot to OSSRH
run: ./gradlew :$PACKAGE:publishDefaultPublicationToOSSHRRepository -PreleaseMode=SNAPSHOT
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
PACKAGE: ${{ matrix.package }}
51 changes: 0 additions & 51 deletions .github/workflows/on-push-master.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/publish-release-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Compose Library Publish Release

on:
push:
tags:
- 'compose_*'

jobs:
publish-release:
uses: ./.github/workflows/publish-release-workflow.yaml
with:
project: compose
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/publish-release-semantics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Semantics Library Publish Release

on:
push:
tags:
- 'semantics_*'

jobs:
publish-release:
uses: ./.github/workflows/publish-release-workflow.yaml
with:
project: compose-semantics
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/publish-release-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test Library Publish Release

on:
push:
tags:
- 'test_*'

jobs:
publish-release:
uses: ./.github/workflows/publish-release-workflow.yaml
with:
project: compose-test
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/publish-release-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: UI Library Publish Release

on:
push:
tags:
- 'ui_*'

jobs:
publish-release:
uses: ./.github/workflows/publish-release-workflow.yaml
with:
project: compose-ui
secrets: inherit
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Publish Release

on:
release:
types: [published]
workflow_call:
inputs:
project:
required: true
type: string

jobs:
deploy-osshr:
name: Deploy to OSSHR
name: Deploy ${{ inputs.project }} to OSSHR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -13,10 +18,11 @@ jobs:
with:
java-version: 17
- uses: little-core-labs/[email protected]
- name: deploy-release
run: ./gradlew :compose:publishDefaultPublicationToOSSHRRepository -PreleaseMode=RELEASE --stacktrace
- name: Deploy Release to OSSRH
run: ./gradlew :$PROJECT:publishDefaultPublicationToOSSHRRepository -PreleaseMode=RELEASE
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
PROJECT: ${{ inputs.project }}
2 changes: 0 additions & 2 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
pull_request:
paths-ignore:
- 'README.md'
- '.github/workflows/master-github-pages.yaml'
- '.github/workflows/release-deploy.yaml'
jobs:
assemble-debug-apk:
name: Assemble Debug APK
Expand Down
6 changes: 5 additions & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
implementation("com.android.tools.build:gradle:8.5.0")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.20")
implementation("org.kohsuke:github-api:1.129")
implementation(libs.kotlin.gradle.plugin)
implementation(libs.gradle.v851)
implementation(libs.dokka.gradle.plugin)
implementation(libs.github.api)
// workaround for https://github.com/gradle/gradle/issues/15383
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
}
13 changes: 13 additions & 0 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dependencyResolutionManagement {
versionCatalogs {
register("libs") {
from(files("../gradle/libs.versions.toml"))
}
}

repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
Loading

0 comments on commit 12a553b

Please sign in to comment.