Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
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
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ on:
branches: [ "main" ]

permissions:
contents: read
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up JDK 21
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
Expand All @@ -28,7 +28,19 @@ jobs:
run: mvn -B package

- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: quetoo-installer-small
path: target/quetoo-installer-small.jar

- name: Publish release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release delete latest --yes --cleanup-tag 2>/dev/null || true
gh release create latest \
--title "Latest Build" \
--notes "Automatically updated on every push to main." \
--prerelease \
target/quetoo-installer-small.jar