-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
109 additions
and
2 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,37 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
|
||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 11 | ||
|
||
- run: ./gradlew publish | ||
if: ${{ github.repository == 'cashapp/multiplatform-paging' }} | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }} | ||
|
||
- uses: ffurrer2/extract-release-notes@v1 | ||
id: release_notes | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
body: ${{ steps.release_notes.outputs.release_notes }} | ||
files: | | ||
zipline-cli/build/distributions/zipline-cli-*.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,8 @@ | ||
# Change Log | ||
|
||
## [Unreleased] | ||
|
||
|
||
## [3.1.1-0.1.0] - 2022-11-08 | ||
|
||
Initial release. |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Releasing | ||
|
||
1. Update the `version` in `build.gradle.kts` 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.X" | ||
``` | ||
|
||
5. Tag | ||
|
||
``` | ||
$ git tag -am "Version X.Y.Z" X.Y.Z | ||
``` | ||
|
||
6. Update the `version` in `build.gradle.kts` 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 Sonatype Nexus. | ||
|
||
9. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact. |
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
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