From 957bd0bc5a289ca38074f01611ea9a53988a97ff Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Thu, 13 Jun 2024 19:01:48 +0200 Subject: [PATCH] finalized for release --- .github/workflows/release.yml | 26 +++++++++++--------------- .github/workflows/snapshot.yml | 2 ++ build.gradle | 2 +- changelog.md | 2 -- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b337858..00b47dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,9 @@ jobs: runs-on: ubuntu-latest permissions: checks: write + pull-requests: write contents: write + issues: write steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -149,19 +151,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} ref: refs/tags/v${{ env.VERSION }} - - name: Upload Release Asset - uses: sekwah41/upload-release-assets@v1 - if: env.SNAPSHOT == 'false' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_name: boxlang-${{ env.VERSION }}.zip - asset_content_type: application/zip - asset_path: | - build/distributions/** - changelog.md - - name: Inform Slack if: ${{ always() }} uses: rtCamp/action-slack-notify@v2 @@ -184,7 +173,9 @@ jobs: needs: [build] permissions: checks: write + pull-requests: write contents: write + issues: write steps: - name: Checkout Development Repository uses: actions/checkout@v4 @@ -196,6 +187,11 @@ jobs: uses: actions/checkout@v4 if: env.LTS == 'true' + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + gradle-version: ${{ env.GRADLE }} + - name: Download build artifacts uses: actions/download-artifact@v4 with: @@ -210,9 +206,9 @@ jobs: run: | if [ $LTS == 'true' ] then - ./gradlew bumpPatchVersion --stacktrace --console=plain + gradle bumpPatchVersion --stacktrace --console=plain else - ./gradlew bumpMinorVersion --stacktrace --console=plain + gradle bumpMinorVersion --stacktrace --console=plain fi git pull diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index bb884e5..0b6e8da 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -63,6 +63,8 @@ jobs: secrets: inherit permissions: checks: write + pull-requests: write contents: write + issues: write with: snapshot: true diff --git a/build.gradle b/build.gradle index b6c13e8..7599c6b 100644 --- a/build.gradle +++ b/build.gradle @@ -197,7 +197,7 @@ task downloadBoxLang( type: Download ) { */ project.ext.bumpVersion = { boolean major = false, boolean minor = false, boolean patch = false -> - def propertiesFile = file( '../gradle.properties' ); + def propertiesFile = file( './gradle.properties' ); def properties = new Properties(); properties.load( propertiesFile.newDataInputStream() ) diff --git a/changelog.md b/changelog.md index 2c2dcf5..8c61aec 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [1.0.0] => 2024-APR-05 - * First iteration of this module