-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start setting up deployment through Maven Central
- Loading branch information
1 parent
ee563df
commit 3c76ba7
Showing
9 changed files
with
143 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: build | ||
on: [ push, pull_request, workflow_dispatch ] | ||
|
||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dkotlin.incremental=false" | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gradle/gradle-build-action@v2 | ||
|
||
- run: ./gradlew build check dokkaHtml | ||
|
||
- run: ./gradlew publish | ||
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alexandrepiveteau/kotlin-graphs' }} | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | ||
|
||
- name: Deploy docs | ||
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alexandrepiveteau/kotlin-graphs' }} | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: | | ||
cd build/dokka/html | ||
git init . && git branch -m dokka | ||
git add . | ||
git config user.name "${{github.actor}}" | ||
git config user.email "${{github.actor}}@users.noreply.github.com" | ||
git commit -m "🚀 Publish documentation" | ||
git remote add origin https://x-access-token:[email protected]/${{github.repository}} | ||
git push -u origin dokka --force |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: gradle-wrapper | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'gradlew' | ||
- 'gradlew.bat' | ||
- 'gradle/wrapper/' | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gradle/wrapper-validation-action@v1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Change Log | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2023-04-24 | ||
|
||
Initial release | ||
|
||
|
||
[Unreleased]: https://github.com/cashapp/turbine/compare/0.1.0...HEAD | ||
[0.1.0]: https://github.com/alexandrepiveteau/kotlin-graphs/releases/tag/0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Releasing | ||
|
||
1. Update the `VERSION_NAME` in `gradle.properties` to the release version. | ||
|
||
2. Update the `CHANGELOG.md`: | ||
1. Change the `Unreleased` header to the release version. | ||
2. Add a link URL to ensure the header link works. | ||
3. Add a new `Unreleased` section to the top. | ||
|
||
3. Update the `README.md` so the "Download" section reflects the new release | ||
version and the snapshot section reflects the next "SNAPSHOT" version. | ||
|
||
4. Commit | ||
|
||
``` | ||
$ git commit -am "Prepare version X.Y.Z" | ||
``` | ||
|
||
5. Tag | ||
|
||
``` | ||
$ git tag -am "Version X.Y.Z" X.Y.Z | ||
``` | ||
|
||
6. Update the `VERSION_NAME` in `gradle.properties` to the next "SNAPSHOT" | ||
version. | ||
|
||
7. Commit | ||
|
||
``` | ||
$ git commit -am "Prepare next development version" | ||
``` | ||
|
||
8. Push! | ||
|
||
``` | ||
$ git push && git push --tags | ||
``` | ||
|
||
This will trigger a GitHub Action workflow which will create a GitHub release | ||
and upload the release artifacts to Maven Central. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
kotlin.code.style=official | ||
GROUP=io.github.alexandrepiveteau | ||
POM_ARTIFACT_ID=kotlin-graphs | ||
# HEY! If you change the major version here be sure to update release.yaml doc | ||
# target folder! | ||
VERSION_NAME=0.1.0-SNAPSHOT | ||
# Sonatype setup. | ||
SONATYPE_AUTOMATIC_RELEASE=true | ||
SONATYPE_HOST=DEFAULT | ||
RELEASE_SIGNING_ENABLED=true | ||
# POM Metadata | ||
POM_NAME=kotlin-graphs | ||
POM_DESCRIPTION=Model directed, undirected, weighted and unweighted graphs \ | ||
and perform computations on them in Kotlin multiplatform. | ||
POM_INCEPTION_YEAR=2023 | ||
POM_URL=https://github.com/alexandrepiveteau/kotlin-graphs/ | ||
POM_SCM_URL=https://github.com/alexandrepiveteau/kotlin-graphs/ | ||
POM_SCM_CONNECTION=scm:git:git://github.com/alexandrepiveteau/kotlin-graphs.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/alexandrepiveteau/kotlin-graphs.git | ||
POM_LICENCE_NAME=The MIT License (MIT) | ||
POM_LICENCE_URL=https://opensource.org/license/mit/ | ||
POM_LICENCE_DIST=repo | ||
POM_DEVELOPER_ID=alexandrepiveteau | ||
POM_DEVELOPER_NAME=Alexandre Piveteau | ||
POM_DEVELOPER_URL=https://github.com/alexandrepiveteau/ | ||
kotlin.js.compiler=ir | ||
kotlin.mpp.stability.nowarn=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |