Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,40 @@ on:
jobs:
build:
runs-on: macos-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4

- name: Prepare release name
run: |
TIAMAT_VERSION=$(grep "tiamat =" gradle/tiamat.toml | cut -d '"' -f 2)
RELEASE_TAG_NAME="release/v$TIAMAT_VERSION"

echo "RELEASE_TAG_NAME=$RELEASE_TAG_NAME"
echo "RELEASE_TAG_NAME=$RELEASE_TAG_NAME" >> $GITHUB_ENV

- name: Execute Gradle build
run: ./gradlew createLocalM2 -PPGP_KEY="${{secrets.PGP_KEY}}" -PPGP_PAS="${{secrets.PGP_PAS}}"

- uses: actions/upload-artifact@v4
with:
name: m2
path: build/m2
if-no-files-found: error
if-no-files-found: error

- name: Create zip file for release
run: |
cd build
zip -r m2.zip m2/

- name: Create draft release
run: |
gh release create ${{ env.RELEASE_TAG_NAME }} build/m2.zip --generate-notes --draft
6 changes: 1 addition & 5 deletions gradle/tiamat.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
[versions]
tiamat-core = "2.0.0-alpha03"
tiamat-destinations = "2.0.0-alpha03"

# [metadata]
# metadata = "some metadata"
tiamat = "2.0.0-alpha03"
2 changes: 1 addition & 1 deletion tiamat-destinations/compiler-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
alias(libs.plugins.m2p)
}

version = tiamat.versions.tiamat.destinations.get()
version = tiamat.versions.tiamat.get()
group = "io.github.composegears"

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions tiamat-destinations/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
alias(libs.plugins.m2p)
}

version = tiamat.versions.tiamat.destinations.get()
version = tiamat.versions.tiamat.get()
group = "io.github.composegears"

dependencies {
Expand All @@ -23,7 +23,7 @@ gradlePlugin {

buildConfig {
packageName("com.composegears.tiamat.destinations")
buildConfigField<String>("COMPILER_PLUGIN_VERSION", tiamat.versions.tiamat.destinations.get())
buildConfigField<String>("COMPILER_PLUGIN_VERSION", tiamat.versions.tiamat.get())

useKotlinOutput()
}
Expand Down
2 changes: 1 addition & 1 deletion tiamat-destinations/tiamat-destinations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
alias(libs.plugins.m2p)
}

version = tiamat.versions.tiamat.destinations.get()
version = tiamat.versions.tiamat.get()
group = "io.github.composegears"

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion tiamat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
alias(libs.plugins.m2p)
}

version = tiamat.versions.tiamat.core.get()
version = tiamat.versions.tiamat.get()
group = "io.github.composegears"

kotlin {
Expand Down
Loading