From 1b3b5354faf39d917cdfdf53df06fc2c0499e4d7 Mon Sep 17 00:00:00 2001 From: Dave Hadka Date: Mon, 25 Dec 2023 09:17:34 -0700 Subject: [PATCH] Work on creating release --- .github/workflows/package.yml | 36 ++++++++++++++++++++++++++--------- README.md | 2 +- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 9b9ea33..bbee350 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -3,6 +3,10 @@ name: Package on: push: workflow_dispatch: + inputs: + create_release: + description: 'Set to create a new release' + type: boolean jobs: package: @@ -37,14 +41,17 @@ jobs: if: runner.os == 'Linux' run: | pushd target - mkdir J3 - cp -r lib/ J3 - cp -r runtime/ J3 - cp -r ../data J3 - cp -r ../animations J3 - cp ../src/packaging/j3.bat J3 - cp ../src/packaging/j3 J3 - chmod +x J3/j3 + mkdir bundle + mkdir bundle/J3 + cp -r lib/ bundle/J3 + cp -r runtime/ bundle/J3 + cp -r ../data bundle/J3 + cp -r ../animations bundle/J3 + cp ../COPYING bundle/J3 + cp ../README.md bundle/J3 + cp ../src/packaging/j3.bat bundle/J3 + cp ../src/packaging/j3 bundle/J3 + chmod +x bundle/J3/j3 - name: Upload platform-independent bundle if: runner.os == 'Linux' @@ -52,4 +59,15 @@ jobs: with: name: J3 path: | - ./target/J3 + ./target/bundle + + release: + if: inputs.create_release + runs-on: ubuntu-latest + needs: package + steps: + - uses: actions/download-artifact@v4 + + - name: Extract release contents + run: | + ls . \ No newline at end of file diff --git a/README.md b/README.md index 09c0cbe..e4c0ecd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# J3 +# J3 - Java 3D Visualization Tool **A free desktop application for producing and sharing high-dimensional, interactive scientific visualizations.**