Skip to content

Commit 6d1b199

Browse files
authored
Update release.yml (#278)
- Update `grailsVersion` in GrailsGradlePluginSpec.groovy - Remove custom `false` flag from the release workflow
1 parent 7e241c2 commit 6d1b199

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
- name: Set the current release version
2828
id: release_version
2929
run: |
30-
echo "Update grailsVersion to ${{steps.release_version.outputs.value}}"
30+
echo "Update grailsVersion to ${GITHUB_REF:11}"
3131
sed -i "s/^grailsVersion.*$/grailsVersion\=${GITHUB_REF:11}/" gradle.properties
32+
sed -i "s/grailsVersion=${GITHUB_REF:11}-SNAPSHOT/grailsVersion\=${GITHUB_REF:11}/" grails-forge-core/src/test/groovy/org/grails/forge/feature/grails/GrailsGradlePluginSpec.groovy
3233
echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
3334
- uses: stefanzweifel/git-auto-commit-action@v4.16.0
3435
with:
@@ -49,7 +50,6 @@ jobs:
4950
SECRING_FILE: ${{ secrets.SECRING_FILE }}
5051
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
5152
- name: Publish to Maven Central
52-
if: false # Disabled until we have a new release
5353
uses: gradle/gradle-build-action@v2
5454
env:
5555
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
@@ -71,7 +71,6 @@ jobs:
7171
asset_name: grails-cli-${{ steps.release_version.outputs.value }}.zip
7272
asset_content_type: application/zip
7373
- name: Publish to Github Pages
74-
if: success() && false # Disabled until we have a new release
7574
uses: micronaut-projects/github-pages-deploy-action@master
7675
env:
7776
BETA: ${{ contains(steps.release_version.outputs.value, 'M') }}
@@ -92,6 +91,7 @@ jobs:
9291
run: |
9392
echo "Setting new Grails snapshot version"
9493
sed -i "s/^grailsVersion.*$/grailsVersion\=${{ steps.post_release.outputs.next_version }}-SNAPSHOT/" gradle.properties
94+
sed -i "s/grailsVersion=${GITHUB_REF:11}/grailsVersion\=${{ steps.post_release.outputs.next_version }}-SNAPSHOT/" grails-forge-core/src/test/groovy/org/grails/forge/feature/grails/GrailsGradlePluginSpec.groovy
9595
- uses: stefanzweifel/git-auto-commit-action@v4.16.0
9696
continue-on-error: true
9797
with:
@@ -375,7 +375,6 @@ jobs:
375375
asset_content_type: application/zip
376376
sdkman:
377377
name: Release to SDKMAN!
378-
if : false # Disabled until we have a new release
379378
runs-on: ubuntu-latest
380379
env:
381380
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}

0 commit comments

Comments
 (0)