diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 510992c9..012ebc95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,103 +12,105 @@ on: workflow_dispatch: jobs: - changelog-and-preparations: - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - steps: - - - name: Checkout the plugin GitHub repository - uses: actions/checkout@v4 - - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v2 - - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: "zulu" - java-version: 17 - - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 - with: - gradle-home-cache-cleanup: true - - - name: Fetch Gradle properties - id: properties - shell: bash - run: | - PROPERTIES="$(./gradlew properties --console=plain -q)" - PLUGIN_VERSION_FULL="$(echo "$PROPERTIES" | grep "^pluginVersion:" | cut -f2- -d ' ')" - CURR_COMMIT="$(git rev-parse HEAD)" - - echo "pluginVersionSemVer: $PLUGIN_VERSION_FULL" - echo "currCommit: $CURR_COMMIT" - - echo "pluginVersionSemVer=$PLUGIN_VERSION_FULL" >> $GITHUB_OUTPUT - echo "currCommit=$CURR_COMMIT" >> $GITHUB_OUTPUT - - - name: Prepare changelog - shell: bash - run: ./gradlew patchChangelog - - - name: Prepare release notes - id: release_notes - shell: bash - run: | - CHANGELOG="$(./gradlew getChangelog -q)" - - echo 'version_release_notes<> $GITHUB_OUTPUT - echo "$CHANGELOG" >> $GITHUB_OUTPUT - echo 'EOF' >> $GITHUB_OUTPUT - - echo "Release notes to be added:" - echo "$CHANGELOG" - - - name: Create new tag and release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git tag ${{ steps.properties.outputs.pluginVersionSemVer }} - git push origin ${{ steps.properties.outputs.pluginVersionSemVer }} - gh release create ${{ steps.properties.outputs.pluginVersionSemVer }} --title ${{ steps.properties.outputs.pluginVersionSemVer }} --target ${{ steps.properties.outputs.currCommit }} -F- <> $GITHUB_OUTPUT + # echo "currCommit=$CURR_COMMIT" >> $GITHUB_OUTPUT + + # - name: Prepare changelog + # shell: bash + # run: ./gradlew patchChangelog + + # - name: Prepare release notes + # id: release_notes + # shell: bash + # run: | + # CHANGELOG="$(./gradlew getChangelog -q)" + + # echo 'version_release_notes<> $GITHUB_OUTPUT + # echo "$CHANGELOG" >> $GITHUB_OUTPUT + # echo 'EOF' >> $GITHUB_OUTPUT + + # echo "Release notes to be added:" + # echo "$CHANGELOG" + + # - name: Create new tag and release + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # git tag ${{ steps.properties.outputs.pluginVersionSemVer }} + # git push origin ${{ steps.properties.outputs.pluginVersionSemVer }} + # gh release create ${{ steps.properties.outputs.pluginVersionSemVer }} --title ${{ steps.properties.outputs.pluginVersionSemVer }} --target ${{ steps.properties.outputs.currCommit }} -F- <