Skip to content

Commit

Permalink
Revert "Temporarily remove some Gradle steps"
Browse files Browse the repository at this point in the history
This reverts commit c688d4e.
  • Loading branch information
Goooler committed Jul 1, 2024
1 parent c688d4e commit dd183ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
with:
java-version: 11
distribution: 'temurin'
- name: gradle caching
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
- name: Generate release name for lib
if: github.event.inputs.to_publish == 'all' || github.event.inputs.to_publish == 'lib'
run: |
Expand Down Expand Up @@ -91,18 +95,24 @@ jobs:
- name: publish all
if: "${{ github.event.inputs.to_publish == 'all' }}"
run: |
./gradlew :changelogPush -Prelease=true --stacktrace --warning-mode all --no-configuration-cache
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all --no-configuration-cache
./gradlew :plugin-maven:changelogPush -Prelease=true --stacktrace --warning-mode all --no-configuration-cache
gh release create ${{ env.LIB_TAG }} --title '${{ env.LIB_NAME }}' --notes '${{ steps.extract-release-notes-for-lib.outputs.release_notes }}'
gh release create ${{ env.PLUGIN_GRADLE_TAG }} --title '${{ env.PLUGIN_GRADLE_NAME }}' --notes '${{ steps.extract-release-notes-for-plugin-gradle.outputs.release_notes }}'
gh release create ${{ env.PLUGIN_MAVEN_TAG }} --title '${{ env.PLUGIN_MAVEN_NAME }}' --notes '${{ steps.extract-release-notes-for-plugin-maven.outputs.release_notes }}'
- name: publish just plugin-gradle
if: "${{ github.event.inputs.to_publish == 'plugin-gradle' }}"
run: |
./gradlew :plugin-gradle:changelogPush -Prelease=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all --no-configuration-cache
gh release create ${{ env.PLUGIN_GRADLE_TAG }} --title '${{ env.PLUGIN_GRADLE_NAME }}' --notes '${{ steps.extract-release-notes-for-plugin-gradle.outputs.release_notes }}'
- name: publish just plugin-maven
if: "${{ github.event.inputs.to_publish == 'plugin-maven' }}"
run: |
./gradlew :plugin-maven:changelogPush -Prelease=true --stacktrace --warning-mode all --no-configuration-cache
gh release create ${{ env.PLUGIN_MAVEN_TAG }} --title '${{ env.PLUGIN_MAVEN_NAME }}' --notes '${{ steps.extract-release-notes-for-plugin-maven.outputs.release_notes }}'
- name: publish just lib
if: "${{ github.event.inputs.to_publish == 'lib' }}"
run: |
./gradlew :changelogPush -Prelease=true --stacktrace --warning-mode all --no-configuration-cache
gh release create ${{ env.LIB_TAG }} --title '${{ env.LIB_NAME }}' --notes '${{ steps.extract-release-notes-for-lib.outputs.release_notes }}'

0 comments on commit dd183ca

Please sign in to comment.