Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change native binaries, sdkman candidates & release assets from grails to grailsforge #497

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
run: |
mkdir -p grails-linux-amd64-snapshot/bin
mv ./grails-cli/build/native/nativeCompile/grails grails-linux-amd64-snapshot/bin
cp ./LICENSE grails-linux-amd64-snapshot/
zip -r grails-linux-amd64-snapshot.zip ./grails-linux-amd64-snapshot
mkdir -p grailsforge-linux-amd64-snapshot/bin
mv ./grails-cli/build/native/nativeCompile/grails grailsforge-linux-amd64-snapshot/bin
cp ./LICENSE grailsforge-linux-amd64-snapshot/
zip -r grailsforge-linux-amd64-snapshot.zip ./grailsforge-linux-amd64-snapshot
- name: "📤 Upload Artifact to Workflow Summary Page"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-linux-amd64-snapshot
path: grails-linux-amd64-snapshot.zip
name: grailsforge-linux-amd64-snapshot
path: grailsforge-linux-amd64-snapshot.zip
macos:
name: "Build OS X Intel Native CLI"
runs-on: macos-13
Expand Down Expand Up @@ -120,16 +120,16 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
run: |
mkdir -p grails-darwin-amd64-snapshot/bin
mv ./grails-cli/build/native/nativeCompile/grails grails-darwin-amd64-snapshot/bin
cp ./LICENSE grails-darwin-amd64-snapshot/
zip -r grails-darwin-amd64-snapshot.zip ./grails-darwin-amd64-snapshot -x '*.DS_Store*' -x '__MAC_OSX'
mkdir -p grailsforge-darwin-amd64-snapshot/bin
mv ./grails-cli/build/native/nativeCompile/grails grailsforge-darwin-amd64-snapshot/bin
cp ./LICENSE grailsforge-darwin-amd64-snapshot/
zip -r grailsforge-darwin-amd64-snapshot.zip ./grailsforge-darwin-amd64-snapshot -x '*.DS_Store*' -x '__MAC_OSX'
- name: "📤 Upload Artifact to Workflow Summary Page"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-darwin-amd64-snapshot
path: grails-darwin-amd64-snapshot.zip
name: grailsforge-darwin-amd64-snapshot
path: grailsforge-darwin-amd64-snapshot.zip
macos-arm:
name: "Build OS X Arm Native CLI"
runs-on: macos-latest
Expand Down Expand Up @@ -161,16 +161,16 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
run: |
mkdir -p grails-darwin-aarch64-snapshot/bin
mv ./grails-cli/build/native/nativeCompile/grails grails-darwin-aarch64-snapshot/bin
cp ./LICENSE grails-darwin-aarch64-snapshot/
zip -r grails-darwin-aarch64-snapshot.zip grails-darwin-aarch64-snapshot/ -x '*.DS_Store*' -x '__MAC_OSX'
mkdir -p grailsforge-darwin-aarch64-snapshot/bin
mv ./grails-cli/build/native/nativeCompile/grails grailsforge-darwin-aarch64-snapshot/bin
cp ./LICENSE grailsforge-darwin-aarch64-snapshot/
zip -r grailsforge-darwin-aarch64-snapshot.zip grailsforge-darwin-aarch64-snapshot/ -x '*.DS_Store*' -x '__MAC_OSX'
- name: "📤 Upload Artifact to Workflow Summary Page"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-darwin-aarch64-snapshot
path: grails-darwin-aarch64-snapshot.zip
name: grailsforge-darwin-aarch64-snapshot
path: grailsforge-darwin-aarch64-snapshot.zip
windows:
name: "Build Windows Native CLI"
runs-on: windows-latest
Expand Down Expand Up @@ -208,13 +208,13 @@ jobs:
run: grails-cli\\build\\native\\nativeCompile\\grails create-app test2
- name: "📦 ZIP Archive"
run: |
New-Item "./grails-win-amd64-snapshot/bin" -ItemType Directory -ea 0
Move-Item -Path ./grails-cli/build/native/nativeCompile/grails.exe -Destination "./grails-win-amd64-snapshot/bin"
Copy-Item "./LICENSE" -Destination "./grails-win-amd64-snapshot"
Compress-Archive -Path "./grails-win-amd64-snapshot" -Update -DestinationPath ./grails-win-amd64-snapshot.zip
New-Item "./grailsforge-win-amd64-snapshot/bin" -ItemType Directory -ea 0
Move-Item -Path ./grails-cli/build/native/nativeCompile/grails.exe -Destination "./grailsforge-win-amd64-snapshot/bin"
Copy-Item "./LICENSE" -Destination "./grailsforge-win-amd64-snapshot"
Compress-Archive -Path "./grailsforge-win-amd64-snapshot" -Update -DestinationPath ./grailsforge-win-amd64-snapshot.zip
- name: "📤 Upload Artifact to Workflow Summary Page"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-win-amd64-snapshot
path: ./grails-win-amd64-snapshot.zip
name: grailsforge-win-amd64-snapshot
path: ./grailsforge-win-amd64-snapshot.zip
48 changes: 24 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
run: |
mkdir -p "grails-linux-amd64-${VERSION}/bin"
mv ./grails-cli/build/native/nativeCompile/grails "grails-linux-amd64-${VERSION}/bin"
cp ./LICENSE "grails-linux-amd64-${VERSION}/"
zip -r "grails-linux-amd64-${VERSION}.zip" "grails-linux-amd64-${VERSION}/"
mkdir -p "grailsforge-linux-amd64-${VERSION}/bin"
mv ./grails-cli/build/native/nativeCompile/grails "grailsforge-linux-amd64-${VERSION}/bin"
cp ./LICENSE "grailsforge-linux-amd64-${VERSION}/"
zip -r "grailsforge-linux-amd64-${VERSION}.zip" "grailsforge-linux-amd64-${VERSION}/"
- name: "📤 Upload Release Asset"
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./grails-linux-amd64-${{ github.event.release.tag_name }}.zip
asset_name: grails-linux-amd64-${{ github.event.release.tag_name }}.zip
asset_path: ./grailsforge-linux-amd64-${{ github.event.release.tag_name }}.zip
asset_name: grailsforge-linux-amd64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
macos:
name: "Release OS X Intel Native CLI"
Expand Down Expand Up @@ -189,19 +189,19 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
run: |
mkdir -p "grails-darwin-amd64-${VERSION}/bin"
mv ./grails-cli/build/native/nativeCompile/grails "grails-darwin-amd64-${VERSION}/bin"
cp ./LICENSE "grails-darwin-amd64-${VERSION}/"
zip -r "grails-darwin-amd64-${VERSION}.zip" "grails-darwin-amd64-${VERSION}/" -x '*.DS_Store*' -x '__MAC_OSX'
mkdir -p "grailsforge-darwin-amd64-${VERSION}/bin"
mv ./grails-cli/build/native/nativeCompile/grails "grailsforge-darwin-amd64-${VERSION}/bin"
cp ./LICENSE "grailsforge-darwin-amd64-${VERSION}/"
zip -r "grailsforge-darwin-amd64-${VERSION}.zip" "grailsforge-darwin-amd64-${VERSION}/" -x '*.DS_Store*' -x '__MAC_OSX'
- name: "📤 Upload Release Asset"
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./grails-darwin-amd64-${{ github.event.release.tag_name }}.zip
asset_name: grails-darwin-amd64-${{ github.event.release.tag_name }}.zip
asset_path: ./grailsforge-darwin-amd64-${{ github.event.release.tag_name }}.zip
asset_name: grailsforge-darwin-amd64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
macos-arm:
name: "Release OS X Arm Native CLI"
Expand Down Expand Up @@ -236,19 +236,19 @@ jobs:
env:
VERSION: ${{ github.event.release.tag_name }}
run: |
mkdir -p "grails-darwin-aarch64-${VERSION}/bin"
mv ./grails-cli/build/native/nativeCompile/grails "grails-darwin-aarch64-${VERSION}/bin"
cp ./LICENSE "grails-darwin-aarch64-${VERSION}/"
zip -r "grails-darwin-aarch64-${VERSION}.zip" "grails-darwin-aarch64-${VERSION}/" -x '*.DS_Store*' -x '__MAC_OSX'
mkdir -p "grailsforge-darwin-aarch64-${VERSION}/bin"
mv ./grails-cli/build/native/nativeCompile/grails "grailsforge-darwin-aarch64-${VERSION}/bin"
cp ./LICENSE "grailsforge-darwin-aarch64-${VERSION}/"
zip -r "grailsforge-darwin-aarch64-${VERSION}.zip" "grailsforge-darwin-aarch64-${VERSION}/" -x '*.DS_Store*' -x '__MAC_OSX'
- name: "📤 Upload Release Asset"
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./grails-darwin-aarch64-${{ github.event.release.tag_name }}.zip
asset_name: grails-darwin-aarch64-${{ github.event.release.tag_name }}.zip
asset_path: ./grailsforge-darwin-aarch64-${{ github.event.release.tag_name }}.zip
asset_name: grailsforge-darwin-aarch64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
windows:
name: "Release Windows Native CLI"
Expand Down Expand Up @@ -289,19 +289,19 @@ jobs:
run: grails-cli\\build\\native\\nativeCompile\\grails create-app test2
- name: "📦 ZIP Archive"
run: |
New-Item ./grails-win-amd64-${{ github.event.release.tag_name }}/bin -ItemType Directory -ea 0
Move-Item -Path ./grails-cli/build/native/nativeCompile/grails.exe -Destination ./grails-win-amd64-${{ github.event.release.tag_name }}/bin
Copy-Item ./LICENSE -Destination ./grails-win-amd64-${{ github.event.release.tag_name }}
Compress-Archive -Path ./grails-win-amd64-${{ github.event.release.tag_name }} -Update -DestinationPath ./grails-win-amd64-${{ github.event.release.tag_name }}.zip
New-Item ./grailsforge-win-amd64-${{ github.event.release.tag_name }}/bin -ItemType Directory -ea 0
Move-Item -Path ./grails-cli/build/native/nativeCompile/grails.exe -Destination ./grailsforge-win-amd64-${{ github.event.release.tag_name }}/bin
Copy-Item ./LICENSE -Destination ./grailsforge-win-amd64-${{ github.event.release.tag_name }}
Compress-Archive -Path ./grailsforge-win-amd64-${{ github.event.release.tag_name }} -Update -DestinationPath ./grailsforge-win-amd64-${{ github.event.release.tag_name }}.zip
- name: "📤 Upload Release Asset"
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./grails-win-amd64-${{ github.event.release.tag_name }}.zip
asset_name: grails-win-amd64-${{ github.event.release.tag_name }}.zip
asset_path: ./grailsforge-win-amd64-${{ github.event.release.tag_name }}.zip
asset_name: grailsforge-win-amd64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
sdkman:
name: "Release to SDKMAN!"
Expand Down
12 changes: 6 additions & 6 deletions grails-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ sdkman {
api = "https://vendors.sdkman.io"
consumerKey = System.getenv("GVM_SDKVENDOR_KEY") ?: project.hasProperty("gvmSdkvendorKey") ? project.gvmSdkvendorKey : ''
consumerToken = System.getenv("GVM_SDKVENDOR_TOKEN") ?: project.hasProperty("gvmSdkvendorToken") ? project.gvmSdkvendorToken : ''
candidate = "grails"
candidate = "grailsforge"
version = project.version
hashtag = "#grailsfw"
hashtag = "#grailsforge"
platforms = [
"MAC_ARM64":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grails-darwin-aarch64-v${project.version}.zip",
"MAC_OSX":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grails-darwin-amd64-v${project.version}.zip",
"WINDOWS_64":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grails-win-amd64-v${project.version}.zip",
"LINUX_64":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grails-linux-amd64-v${project.version}.zip"
"MAC_ARM64":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grailsforge-darwin-aarch64-v${project.version}.zip",
"MAC_OSX":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grailsforge-darwin-amd64-v${project.version}.zip",
"WINDOWS_64":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grailsforge-win-amd64-v${project.version}.zip",
"LINUX_64":"https://github.com/grails/grails-forge/releases/download/v${project.version}/grailsforge-linux-amd64-v${project.version}.zip"
]
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Args = -H:Name=grails \
Args = -H:Name=grailsforge \
-H:Class=org.grails.forge.cli.Application
Loading