Skip to content

Commit

Permalink
chore: Release Snapshot (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tallnato authored Aug 26, 2024
1 parent 2b0cf04 commit f792902
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pre-release

on:
release:
types:
- prereleased

jobs:
deploy-snapshot:
name: Deploy snapshot
runs-on:
- ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Upload Github
env:
RELEASE_NAME: ${{ github.event.release.name }}-SNAPSHOT
DEPLOY-KEY: ${{ secrets.DEPLOY-KEY }}
run: ./gradlew kmvi:publishAllPublicationsToGitHubPackagesRepository
19 changes: 19 additions & 0 deletions kmvi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
import java.net.URI

plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
id("maven-publish")
}

group = "io.github.natobytes.kmvi"
version = System.getenv()["RELEASE_NAME"] ?: "0.1.0"


kotlin {
jvm()

Expand Down Expand Up @@ -50,3 +56,16 @@ android {
targetCompatibility = JavaVersion.VERSION_1_8
}
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = URI("https://maven.pkg.github.com/natobytes/KMVI/")
credentials {
username = "natobytes"
password = System.getenv()["DEPLOY-KEY"] ?: ""
}
}
}
}

0 comments on commit f792902

Please sign in to comment.