Skip to content
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
43 changes: 32 additions & 11 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for tags

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -35,27 +37,46 @@ jobs:
- name: Run tests
run: sbt test

- name: Build package
run: sbt Universal/packageBin
- name: Build universal package
run: sbt 'set version := "${{ github.ref_name }}"' Universal/packageBin

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: supercoder-package
path: target/universal/supercoder-*.zip
retention-days: 5
- name: Get package path
id: get_package
run: |
echo "PACKAGE_PATH=$(find target/universal -name 'supercoder-*.zip' -type f)" >> $GITHUB_ENV
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Create a Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: target/universal/supercoder-*.zip
name: Release ${{ github.ref_name }}
files: ${{ env.PACKAGE_PATH }}
name: Release ${{ env.VERSION }}
body: |
## SuperCoder Release ${{ env.VERSION }}

### Installation
Download the zip file and extract it to your desired location.

### Running
After extraction, you can run the application using:
```bash
./bin/supercoder
```

### Changes
See the commit history for detailed changes.
draft: false
prerelease: false
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: supercoder-package
path: ${{ env.PACKAGE_PATH }}
retention-days: 5

- name: Cleanup before cache
run: |
rm -rf "$HOME/.ivy2/local" || true
Expand Down
Loading