Skip to content

Update to new ComposeKit #468

Update to new ComposeKit

Update to new ComposeKit #468

Workflow file for this run

name: Build [Linux]
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.draft == false && (github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, 'noci')) }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDKs
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: |
22
21
- name: Set up Gradle
uses: gradle/gradle-build-action@v3
- name: Build tarball
run: ./gradlew desktopApp:packageReleaseTarball
- name: Upload tarball artifact
uses: actions/upload-artifact@v3
with:
name: spmp-linux-release
path: desktopApp/build/outputs/*.tar.gz
- name: Rename output file
run: mv desktopApp/build/outputs/*.tar.gz desktopApp/build/outputs/spmp-nightly-linux-x86_64.tar.gz
- name: Get current date and time
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')"
- name: Update nightly release
uses: mini-bomba/[email protected]
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nightly-latest
name: Nightly ${{ steps.date.outputs.date }}
files: desktopApp/build/outputs/spmp-nightly-linux-x86_64.tar.gz
clear_attachments: false