@@ -11,22 +11,12 @@ jobs:
1111 RELEASE_EXTENSION :
1212 strategy :
1313 matrix :
14- # os: [macos-latest, ubuntu-latest, windows-latest]
15- # os: [ macos-latest, ubuntu-latest ]
1614 os : [ mulesoft-ubuntu ]
1715 include :
18- # - os: windows-latest
19- # script_name: windows
2016 - os : mulesoft-ubuntu
2117 script_name : linux
22- # - os: macos-latest
23- # script_name: osx
2418 runs-on : ${{ matrix.os }}
2519
26- # Set permissions
27- # permissions:
28- # contents: write
29-
3020 # Steps represent a sequence of tasks that will be executed as part of the job
3121 steps :
3222 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3929 - name : Setup Graalvm
4030 uses : graalvm/setup-graalvm@v1
4131 with :
42- # version: ${{env.GRAALVM_VERSION}}
4332 java-version : ' 24'
4433 distribution : ' graalvm-community'
4534 github-token : ${{ secrets.GITHUB_TOKEN }}
@@ -49,35 +38,23 @@ jobs:
4938 echo "NATIVE_VERSION=$(echo '${{github.ref}}' | sed -e 's,.*/v\(.*\),\1,')" >> $GITHUB_ENV
5039 shell : bash
5140
52- # Create Release
53- - name : Create Release
54- uses : actions/create-release@latest
55- env :
56- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57- with :
58- tag_name : ${{ github.ref }}
59- release_name : ${{ github.ref }}
60- body : " Example body"
61- draft : true
62- prerelease : false
63-
6441 # Runs a single command using the runners shell
65- # - name: Run Build
66- # run: |
67- # ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
68- # shell: bash
42+ - name : Run Build
43+ run : |
44+ ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
45+ shell : bash
6946
7047 # Generate distro
71- # - name: Create Distro
72- # run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
73- # shell: bash
48+ - name : Create Distro
49+ run : ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
50+ shell : bash
7451
7552 # Upload the artifact file
76- # - name: Upload binaries to release
77- # uses: svenstaro/upload-release-action@v2
78- # with:
79- # repo_token: ${{ secrets.GITHUB_TOKEN }}
80- # file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
81- # asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}}
82- # tag: ${{ github.ref }}
83- # overwrite: true
53+ - name : Upload binaries to release
54+ uses : svenstaro/upload-release-action@v2
55+ with :
56+ repo_token : ${{ secrets.GITHUB_TOKEN }}
57+ file : native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
58+ asset_name : dw-${{env.NATIVE_VERSION}}-${{runner.os}}
59+ tag : ${{ github.ref }}
60+ overwrite : true
0 commit comments