-
Notifications
You must be signed in to change notification settings - Fork 12
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
5 changed files
with
76 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
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 |
---|---|---|
|
@@ -3,52 +3,76 @@ on: push | |
# workflow_dispatch: | ||
# inputs: | ||
# version: | ||
# description: 'The version number to use' | ||
# description: 'The version number to use (ex: 1.22.3)' | ||
# required: true | ||
# type: string | ||
#env: | ||
# RELEASE_VERSION: ${{ inputs.version }} | ||
|
||
jobs: | ||
create-release-pr: | ||
name: Create a pull request for the release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
# create-release-pr: | ||
# name: Create a pull request for the release | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: write | ||
# | ||
# steps: | ||
# - name: Install chan CLI | ||
# run: npm install -g @geut/chan | ||
# | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Write a new release to CHANGELOG.md | ||
# run: chan release $RELEASE_VERSION --release-prefix="" | ||
# | ||
# - name: Update Akkurate's version in build files | ||
# run: | | ||
# echo 'version = "'$RELEASE_VERSION'"' > ./buildSrc/src/main/kotlin/akkurate.version.gradle.kts; | ||
# sed -ri 's|CONFIG_JSON_VERSION *:.*|CONFIG_JSON_VERSION: '$RELEASE_VERSION'|g' ./.github/workflows/deploy-website.yml; | ||
# sed -ri 's|<var.* name="version".*|<var name="version" value="'$RELEASE_VERSION'"/>|g' ./documentation/v.list; | ||
# sed -ri 's|<instance.* src="akkurate.tree".*|<instance src="akkurate.tree" version="'$RELEASE_VERSION'"/>|g' ./documentation/writerside.cfg; | ||
# | ||
## - name: Commit and push | ||
## uses: stefanzweifel/git-auto-commit-action@v5 | ||
## with: | ||
## commit_message: release ${{ inputs.version }} | ||
## branch: release/${{ inputs.version }} | ||
## create_branch: true | ||
## commit_author: Johann Pardanaud <[email protected]> | ||
## tagging_message: ${{ inputs.version }} | ||
# | ||
# - name: Create a draft release | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: chan show $RELEASE_VERSION | tail -n +2 | gh release create $RELEASE_VERSION --title "Akkurate $RELEASE_VERSION" --draft --notes-file - | ||
|
||
publish: | ||
name: Publish to Maven Central Repository | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install chan CLI | ||
run: npm install -g @geut/chan | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Write a new release to CHANGELOG.md | ||
env: | ||
# RELEASE_VERSION: ${{ inputs.version }} | ||
RELEASE_VERSION: 0.99.0 | ||
run: chan release $RELEASE_VERSION --release-prefix="" | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: zulu | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/actions/wrapper-validation@v3 | ||
|
||
- name: Update Akkurate's version in build files | ||
env: | ||
# RELEASE_VERSION: ${{ inputs.version }} | ||
RELEASE_VERSION: 0.99.0 | ||
run: | | ||
echo 'version = "'$RELEASE_VERSION'"' > ./buildSrc/src/main/kotlin/akkurate.version.gradle.kts; | ||
sed -ri 's|CONFIG_JSON_VERSION *:.*|CONFIG_JSON_VERSION: '$RELEASE_VERSION'|g' ./.github/workflows/deploy-website.yml; | ||
sed -ri 's|<var.* name="version".*|<var name="version" value="'$RELEASE_VERSION'"/>|g' ./documentation/v.list; | ||
sed -ri 's|<instance.* src="akkurate.tree".*|<instance src="akkurate.tree" version="'$RELEASE_VERSION'"/>|g' ./documentation/writerside.cfg; | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
# - name: Commit and push | ||
# uses: stefanzweifel/git-auto-commit-action@v5 | ||
# with: | ||
# commit_message: release ${{ inputs.version }} | ||
# branch: release/${{ inputs.version }} | ||
# create_branch: true | ||
# commit_author: Johann Pardanaud <[email protected]> | ||
# tagging_message: ${{ inputs.version }} | ||
- run: ls /Users/runner/hostedtoolcache/Java_Zulu_jdk/17.0.13-11/arm64 | ||
|
||
- name: Create a draft release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# RELEASE_VERSION: ${{ inputs.version }} | ||
RELEASE_VERSION: 0.99.0 | ||
run: chan show $RELEASE_VERSION | tail -n +2 | gh release create $RELEASE_VERSION --title "Akkurate $RELEASE_VERSION" --draft --notes-file - | ||
# - name: Publish to Maven Central Repository | ||
# env: | ||
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} | ||
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} | ||
# SONATYPE_URL: ${{ vars.SONATYPE_URL }} | ||
# SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
# run: ./gradlew publish |
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 @@ | ||
name: Run tests | ||
on: [ push, pull_request ] | ||
#on: [ push, pull_request ] | ||
|
||
jobs: | ||
test: | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ plugins { | |
|
||
kotlin { | ||
explicitApi() | ||
jvmToolchain(8) | ||
// jvmToolchain(8) | ||
|
||
sourceSets { | ||
all { | ||
|
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