Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove universal package from github actions #800

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 40 additions & 41 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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
Expand All @@ -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/[email protected]
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/[email protected]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions
Expand All @@ -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/[email protected]
with:
name: ${{ env.BINARY }}
Expand Down