diff --git a/.github/workflows/github-action-pre_release.yml b/.github/workflows/github-action-pre_release.yml index a600a20..3b1a9c9 100644 --- a/.github/workflows/github-action-pre_release.yml +++ b/.github/workflows/github-action-pre_release.yml @@ -1,7 +1,7 @@ name: TV-Multiplatform Build Pre Release on: push: - branches: [pre-release] + branches: [ pre-release ] #env: # tag: ${{ github.run_id }} jobs: @@ -11,6 +11,9 @@ jobs: lastTag: ${{steps.last-tag.outputs.lastTag}} runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - id: set-tag run: echo "tag=`date +"%Y%m%d%H%M%S"`" >> $GITHUB_OUTPUT - id: last-tag @@ -27,15 +30,15 @@ jobs: java-version: 17 cache: 'gradle' - run: ls -# - run: ./gradlew packageReleaseDistributionForCurrentOS + # - run: ./gradlew packageReleaseDistributionForCurrentOS - run: ./gradlew createReleaseDistributable - run: ls && tree ./desktopApp /f - name: compress shell: pwsh run: Compress-Archive -Path "./composeApp/build/compose/binaries/main-release/app/TV" -DestinationPath ./TV-win-${{ needs.set-tag.outputs.tag }}.zip -# - name: move result to root -# shell: pwsh -# run: Move-Item -Path "./composeApp/build/compose/binaries/main-release/app/*.zip" -Destination "./" && Move-Item -Path "./composeApp/build/compose/binaries/main-release/msi/*.msi" -Destination "./" + # - name: move result to root + # shell: pwsh + # run: Move-Item -Path "./composeApp/build/compose/binaries/main-release/app/*.zip" -Destination "./" && Move-Item -Path "./composeApp/build/compose/binaries/main-release/msi/*.msi" -Destination "./" - run: ls - uses: actions/upload-artifact@v4 with: @@ -75,30 +78,30 @@ jobs: needs: - set-tag steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: 17 - cache: 'gradle' - - run: ls - - run: chmod +x ./gradlew && ./gradlew createReleaseDistributable -# - run: ./gradlew packageReleaseDistributionForCurrentOS - - run: ls - - name: compress - run: zip -q -r ./TV-mac-${{ needs.set-tag.outputs.tag }}.zip ./composeApp/build/compose/binaries/main-release/app -# - name: move file -# run: mv ./composeApp/build/compose/binaries/main-release/dmg/*.dmg ./TV-mac-$tag.dmg - - run: ls - - uses: actions/upload-artifact@v4 - with: - name: mac-file - path: | - *.dmg - *.zip + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 17 + cache: 'gradle' + - run: ls + - run: chmod +x ./gradlew && ./gradlew createReleaseDistributable + # - run: ./gradlew packageReleaseDistributionForCurrentOS + - run: ls + - name: compress + run: zip -q -r ./TV-mac-${{ needs.set-tag.outputs.tag }}.zip ./composeApp/build/compose/binaries/main-release/app + # - name: move file + # run: mv ./composeApp/build/compose/binaries/main-release/dmg/*.dmg ./TV-mac-$tag.dmg + - run: ls + - uses: actions/upload-artifact@v4 + with: + name: mac-file + path: | + *.dmg + *.zip release: runs-on: ubuntu-latest - needs: [ build-win, build-linux, build-mac, set-tag] + needs: [ build-win, build-linux, build-mac, set-tag ] steps: - name: Download all workflow run artifacts uses: actions/download-artifact@v4