55 tags :
66 - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
77
8-
98jobs :
109
1110 # This workflow contains a single job called "build"
1211 RELEASE_EXTENSION :
1312 strategy :
1413 matrix :
1514# os: [macos-latest, ubuntu-latest, windows-latest]
16- os : [ macos-latest, ubuntu-latest ]
15+ # os: [ macos-latest, ubuntu-latest ]
16+ os : [ ubuntu-latest ]
1717 include :
1818# - os: windows-latest
1919# script_name: windows
2020 - os : ubuntu-latest
2121 script_name : linux
22- - os : macos-latest
23- script_name : osx
22+ # - os: macos-latest
23+ # script_name: osx
2424 runs-on : ${{ matrix.os }}
2525
2626 # Set permissions
27- permissions :
28- contents : write
27+ # permissions:
28+ # contents: write
2929
3030 # Steps represent a sequence of tasks that will be executed as part of the job
3131 steps :
@@ -48,25 +48,36 @@ jobs:
4848 run : |
4949 echo "NATIVE_VERSION=$(echo '${{github.ref}}' | sed -e 's,.*/v\(.*\),\1,')" >> $GITHUB_ENV
5050 shell : bash
51-
51+
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+
5264 # Runs a single command using the runners shell
53- - name : Run Build
54- run : |
55- ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
56- shell : bash
57-
65+ # - name: Run Build
66+ # run: |
67+ # ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
68+ # shell: bash
69+
5870 # Generate distro
59- - name : Create Distro
60- run : ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
61- shell : bash
71+ # - name: Create Distro
72+ # run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
73+ # shell: bash
6274
6375 # Upload the artifact file
64- - name : Upload binaries to release
65- uses : svenstaro/upload-release-action@v2
66- with :
67- repo_token : ${{ secrets.GITHUB_TOKEN }}
68- file : native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
69- asset_name : dw-${{env.NATIVE_VERSION}}-${{runner.os}}
70- tag : ${{ github.ref }}
71- overwrite : true
72-
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
0 commit comments