Skip to content

Commit

Permalink
Work on creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 25, 2023
1 parent 871419a commit 1b3b535
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Package
on:
push:
workflow_dispatch:
inputs:
create_release:
description: 'Set to create a new release'
type: boolean

jobs:
package:
Expand Down Expand Up @@ -37,19 +41,33 @@ 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'
uses: actions/upload-artifact@v4
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 .
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# J3
# J3 - Java 3D Visualization Tool

**A free desktop application for producing and sharing high-dimensional, interactive scientific visualizations.**

Expand Down

0 comments on commit 1b3b535

Please sign in to comment.