From 0b3bd082084ff1aecc241c051efb641c1d2d41d4 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Thu, 23 Oct 2025 18:07:38 -0300 Subject: [PATCH] W-20004524: Try other release action --- .github/workflows/release.yml | 59 +++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 210f943..e0696c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,6 @@ on: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - jobs: # This workflow contains a single job called "build" @@ -13,19 +12,20 @@ jobs: strategy: matrix: # os: [macos-latest, ubuntu-latest, windows-latest] - os: [ macos-latest, ubuntu-latest ] +# os: [ macos-latest, ubuntu-latest ] + os: [ ubuntu-latest ] include: # - os: windows-latest # script_name: windows - os: ubuntu-latest script_name: linux - - os: macos-latest - script_name: osx + # - os: macos-latest + # script_name: osx runs-on: ${{ matrix.os }} # Set permissions - permissions: - contents: write +# permissions: +# contents: write # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -48,25 +48,36 @@ jobs: run: | echo "NATIVE_VERSION=$(echo '${{github.ref}}' | sed -e 's,.*/v\(.*\),\1,')" >> $GITHUB_ENV shell: bash - + + # Create Release + - name: Create Release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: "Example body" + draft: true + prerelease: false + # Runs a single command using the runners shell - - name: Run Build - run: | - ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}} - shell: bash - + # - name: Run Build + # run: | + # ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}} + # shell: bash + # Generate distro - - name: Create Distro - run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}} - shell: bash +# - name: Create Distro +# run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}} +# shell: bash # Upload the artifact file - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip - asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} - tag: ${{ github.ref }} - overwrite: true - +# - name: Upload binaries to release +# uses: svenstaro/upload-release-action@v2 +# with: +# repo_token: ${{ secrets.GITHUB_TOKEN }} +# file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip +# asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}} +# tag: ${{ github.ref }} +# overwrite: true