Skip to content

Ah. Versions...

Ah. Versions... #9

Workflow file for this run

name: App
on:
push:
pull_request:
release:
types: [created]
jobs:
build_app:
runs-on: ubuntu-latest
steps:
- name: πŸ“© Grab the code
uses: actions/checkout@v3
- name: πŸ—οΈ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: πŸ—οΈ Set deploy channel env
run: echo "DEPLOY_CHANNEL=${{ (startsWith(github.ref, 'refs/tags/1.2-') && ((github.event.release.prerelease && 'beta') || 'stable')) || 'dev' }}" >> $GITHUB_ENV && echo $DEPLOY_CHANNEL
if: startsWith(github.ref, 'refs/tags/1.2-')
- name: πŸ”¨ Compile the app
run: bash build.sh compile
- name: πŸ†™ Upload the app jar
uses: actions/upload-artifact@v4
with:
name: Caffeinated.jar
path: app/core/target/Caffeinated.jar
bundle_windows:
needs: [build_app]
runs-on: windows-latest
steps:
- name: πŸ“© Grab the code
uses: actions/checkout@v3
- name: πŸ—οΈ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: πŸ“© Download the compiled app
uses: actions/download-artifact@v4
with:
name: Caffeinated.jar
path: app/core/target/Caffeinated.jar
- name: πŸ“¦ Build the Windows artifact
run: bash build.sh dist-windows
- name: πŸ†™ Upload the Windows artifact to GitHub (x86_64)
uses: actions/upload-artifact@v4
with:
name: Casterlabs-Caffeinated-windows-x86_64.zip
path: dist/artifacts/Casterlabs-Caffeinated-windows-x86_64.zip
# bundle_macos:
# runs-on: ubuntu-latest
# steps:
# - name: πŸ“© Grab the code
# uses: actions/checkout@v3
# - name: πŸ—οΈ Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: 11
# distribution: temurin
# cache: maven
# - name: πŸ—οΈ Set deploy channel env
# run: echo "DEPLOY_CHANNEL=${{ (startsWith(github.ref, 'refs/tags/1.2-') && ((github.event.release.prerelease && 'beta') || 'stable')) || 'dev' }}" >> $GITHUB_ENV
# if: startsWith(github.ref, 'refs/tags/1.2-')
# - name: πŸ—οΈ Compile the deploy helper
# run: cd deploy-helper && bash ./mvnw clean package
# if: startsWith(github.ref, 'refs/tags/1.2-')
# - name: πŸ”¨ Compile the app
# run: bash build.sh compile
# - name: πŸ“¦ Build the macOS artifact
# run: bash build.sh dist-macos
# - name: πŸ†™ Upload the macOS artifact to GitHub (aarch64)
# uses: actions/upload-artifact@v4
# with:
# name: Casterlabs-Caffeinated-macos-aarch64.tar.gz
# path: dist/artifacts/Casterlabs-Caffeinated-macos-aarch64.tar.gz
# - name: πŸ†™ Upload the macOS artifact to GitHub (x86_64)
# uses: actions/upload-artifact@v4
# with:
# name: Casterlabs-Caffeinated-macos-x86_64.tar.gz
# path: dist/artifacts/Casterlabs-Caffeinated-macos-x86_64.tar.gz
# bundle_linux:
# runs-on: ubuntu-latest
# steps:
# - name: πŸ“© Grab the code
# uses: actions/checkout@v3
# - name: πŸ—οΈ Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: 11
# distribution: temurin
# cache: maven
# - name: πŸ—οΈ Set deploy channel env
# run: echo "DEPLOY_CHANNEL=${{ (startsWith(github.ref, 'refs/tags/1.2-') && ((github.event.release.prerelease && 'beta') || 'stable')) || 'dev' }}" >> $GITHUB_ENV
# if: startsWith(github.ref, 'refs/tags/1.2-')
# - name: πŸ—οΈ Compile the deploy helper
# run: cd deploy-helper && bash ./mvnw clean package
# if: startsWith(github.ref, 'refs/tags/1.2-')
# - name: πŸ”¨ Compile the app
# run: bash build.sh compile
# - name: πŸ“¦ Build the Linux artifact
# run: bash build.sh dist-linux
# - name: πŸ†™ Upload the Linux artifact to GitHub (aarch64)
# uses: actions/upload-artifact@v4
# with:
# name: Casterlabs-Caffeinated-gnulinux-aarch64.tar.gz
# path: dist/artifacts/Casterlabs-Caffeinated-gnulinux-aarch64.tar.gz
# - name: πŸ†™ Upload the Linux artifact to GitHub (arm)
# uses: actions/upload-artifact@v4
# with:
# name: Casterlabs-Caffeinated-gnulinux-arm.tar.gz
# path: dist/artifacts/Casterlabs-Caffeinated-gnulinux-arm.tar.gz
# - name: πŸ†™ Upload the Linux artifact to GitHub (x86_64)
# uses: actions/upload-artifact@v4
# with:
# name: Casterlabs-Caffeinated-gnulinux-x86_64.tar.gz
# path: dist/artifacts/Casterlabs-Caffeinated-gnulinux-x86_64.tar.gz