From 33651d259e6780bb813dfae49b12d9690a458bc3 Mon Sep 17 00:00:00 2001 From: Dan Royer Date: Fri, 21 Feb 2025 10:36:20 -0800 Subject: [PATCH] remove universal package from github actions --- .github/workflows/maven.yml | 81 ++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 20ea377bf..cdbc7d2a4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,23 +31,38 @@ jobs: - name: Package with Maven run: ./mvnw -B clean package -DskipTests - - name: Check files 1 - run: ls -l src/main/package/ - - - name: Prepare universal package - shell: bash - run: | - mkdir -p target/universal-package && - cp src/main/package/*.bat target/universal-package/ && - cp src/main/package/start* target/universal-package/ && - cp src/main/package/thankyou.* target/universal-package/ && - cp CONTRIBUTING.md target/universal-package/ && - cp LICENSE target/universal-package/ && - cp README.md target/universal-package/ && - cp target/Makelangelo-*-with-dependencies.jar target/universal-package/ && - cd target/universal-package/ && - 7z a -tzip Makelangelo.zip . && - mv Makelangelo.zip ../.. +# - name: Check files 1 +# run: ls -l src/main/package/ + +# - name: Prepare universal package +# shell: bash +# run: | +# mkdir -p target/universal-package && +# cp src/main/package/*.bat target/universal-package/ && +# cp src/main/package/start* target/universal-package/ && +# cp src/main/package/thankyou.* target/universal-package/ && +# cp CONTRIBUTING.md target/universal-package/ && +# cp LICENSE target/universal-package/ && +# cp README.md target/universal-package/ && +# cp target/Makelangelo-*-with-dependencies.jar target/universal-package/ && +# cd target/universal-package/ && +# 7z a -tzip Makelangelo.zip . && +# mv Makelangelo.zip ../.. + +# - name: Check files 2a +# run: ls -l target/universal-package/ + +# - name: Deploy universal release +# if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') +# uses: WebFreak001/deploy-nightly@v3.2.0 +# with: +# token: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions +# upload_url: ${{ env.UPLOAD_URL }} +# release_id: ${{ env.RELEASE_ID }} +# asset_path: Makelangelo.zip # path to archive to upload +# asset_name: Makelangelo-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash +# asset_content_type: application/zip # required by GitHub API +# max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted - name: Prepare target/package for upload shell: bash @@ -60,23 +75,8 @@ jobs: cp LICENSE target/package/ && cp README.md target/package/ - - name: Check files 2a - run: ls -l target/universal-package/ - - - name: Check files 2b - run: ls -l target/package/ - - - name: Deploy universal release - if: github.repository == 'MarginallyClever/Makelangelo-software' && github.ref == 'refs/heads/master' - uses: WebFreak001/deploy-nightly@v3.2.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions - upload_url: ${{ env.UPLOAD_URL }} - release_id: ${{ env.RELEASE_ID }} - asset_path: Makelangelo.zip # path to archive to upload - asset_name: Makelangelo-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash - asset_content_type: application/zip # required by GitHub API - max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted + # - name: Check files 2b + # run: ls -l target/package/ - name: Upload artifact for package uses: actions/upload-artifact@v4.6.0 @@ -90,8 +90,8 @@ jobs: README target/package/* - - name: Check files 3 - run: ls -l target/universal-package/ +# - name: Check files 3 +# run: ls -l target/universal-package/ package: needs: build @@ -109,8 +109,8 @@ jobs: with: name: jar - - name: Check files 4 - run: ls -l target/package/ +# - name: Check files 4 +# run: ls -l target/package/ - name: Build installation package shell: bash @@ -127,8 +127,7 @@ jobs: echo "BINARY_NIGHTLY=$BINARY_NIGHTLY" | tee -a $GITHUB_ENV - name: Deploy installation release -# if: github.repository == 'MarginallyClever/Makelangelo-software' -# if: github.repository == 'MarginallyClever/Makelangelo-software' && github.ref == 'refs/heads/master' +# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' uses: WebFreak001/deploy-nightly@v3.2.0 with: token: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions @@ -140,7 +139,7 @@ jobs: max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted - name: Upload artifact for testing purpose -# if: github.repository == 'MarginallyClever/Makelangelo-software' || github.ref != 'refs/heads/master' +# if: github.ref != 'refs/heads/master' uses: actions/upload-artifact@v4.6.0 with: name: ${{ env.BINARY }}