mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
717a423449
* Migrate to TailwindCSS v4 (#740) * Remove "material-tailwind" dependencies due to incompatibility of Stepper component with Tailwind v4 * Clean up Tailwind configs before upgrade * Run HeroUI upgrade * Run TailwindCSS upgrade * Replace PostCSS with Vite * Migrate custom styles to v4 * Remove tailwind.config.ts * Add heroui.ts Add tailwind vite plugin * Fix small UI color inconsistency * Fix theming system Rename purple theme to pink * Re-implement stepper in HeroUI * Fix RoleChip colors * Migrate icon names (#743) * Add migration script for phosphor-icons * Migrate icon usages * Update version to 2.2.0-preview * Revert accidental rename of menu title * Bump stefanzweifel/git-auto-commit-action from 6 to 7 (#750) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6 to 7. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v6...v7) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Improve library scanning (#749) * Update script to generate example libraries using SteamSpy API * Refactor library scanning process * Display Flyway startup log by default * Fix race condition in CompanyService * Fix race condition in ImageService Remove obsolete table * Fix SMTP config requiring an email as username (#755) * Disable length limit for config values (#757) * Deprecate DockerHub image (#759) * Remove deprecation warning from web UI * Reworked the CICD pipelines * Optimize container image (#761) * Fix Gradle warning * Rework Docker image to improve layer caching * Bump stefanzweifel/git-auto-commit-action from 6 to 7 (#765) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 6 to 7. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v6...v7) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Multi platform support (#764) * Remove migrate-phosphor-icons.js since migration has been successful * Refactor GameMetadata into separate files * Add Platform enum * Implement platform support in Plugin API * Implement platform support in Steam Plugin * Implement platform support in IGDB Plugin * Add database migration for platform support * Implement platform support in GameService * Implement platform support on most endpoints and features, some are still missing Implemented platform support in all bundled plugins (although not finished polishing yet) * Implement platforms in UI * Make GameRequest platform aware * Return headerImages from IGDB * Implement proper PlatformMapper for IGDB plugin * Fix various smaller issues and inconsistencies * Replace placeholder in LibraryOverviewCard (#767) * Bump actions/download-artifact from 5 to 6 (#769) * Bump actions/upload-artifact from 4 to 5 (#770) * Multi platform support (#773) * Fix bug in Plugin API related to state loading/saving * Hide Flyway query logs by default * Extend migration script for multi platform tables * Plugins now store their data and state in ./plugindata * Add "plugindata" directory to entrypoint scripts * Improve download handling (#756) * Process download in background thread to avoid session timeout affecting it * Increase default session timeout to 24h * Use virtual thread pool for download task in background * Make KSP extensions.idx generation more robust * Implement download bandwidth limiter Implement SliderInput Refactor NumberInput * Implement download bandwidth throttling Implement real-time download monitoring * Improve UI for DownloadManagement Track more stats in SessionStats * Update Hilla Use React 19 * Implement real-time graph to track bandwidth usage Implement downloaded data sum over last day Small bug fixes Small refactorings * Update docker-compose.example.yml * Improve DownloadSessionCard (#784) * Fix unit on y-axis of download graph * Show game size and library in tooltip Make game chips interactive in DownloadSessionCard (leads to game page when clicked) Optimize graph settings * Migrate torrent plugin to libtorrent (#775) * Disable TorrentDownloadPlugin in Alpine based Docker image * Improve test coverage (#785) * Fix potential divide by zero bug * Add mockk dependency * Add tests for org.gameyfin.app.core.download * Add tests for Filesytem package Fix DownloadServiceTest * Fix FilesystemServiceTest * Add tests for "job" package * Upgrade Gradle wrapper Enable Gradle config cache * Added more tests * Added tests for the "security" package * Add tests for "game" package * Fix AsyncFileTailer not shutting down properly on Windows * Fix GameServiceTest * Added tests for "libraries" package * Added tests for "media" package * Fix warning in ImageService * Add tests fpr "messages" package Make sure transport is closed even in case an exception is thrown * Add tests for "platforms" package * Add tests for "requests" package * Moved "token" package to "core" package (from "shared") * Add tests for "token" package * Fix issue in RoleEnum.safeValueOf() throwing Exception * Fix potential issue in UserEndpoint.getUserInfo() when auth is null * Added tests for "user" package * Migrate package for "token" in FE * Publish test report in CI * Fix workflow permissions * Remove test because of timing issue in CI * Replaced "unmatched paths" with "ignored paths" (#791) * Use new "AutoComplete" component (#793) * Use ArrayInputAutocomplete in EditGameMetadataModal * Add test for getEnumPropertyValues --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
226 lines
6.9 KiB
YAML
226 lines
6.9 KiB
YAML
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Release version (leave empty to use current)'
|
|
required: false
|
|
update_version:
|
|
description: 'Update version and commit version bump?'
|
|
required: true
|
|
default: true
|
|
type: boolean
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
env:
|
|
RELEASE_VERSION: ${{ github.event.inputs.version }}
|
|
outputs:
|
|
release_version: ${{ steps.get_version.outputs.release_version }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Get version from build.gradle.kts if not provided
|
|
id: get_version
|
|
run: |
|
|
if [ -z "${{ github.event.inputs.version }}" ]; then
|
|
VERSION=$(grep '^version = ' build.gradle.kts | sed 's/version = "\(.*\)"/\1/')
|
|
echo "release_version=$VERSION" >> $GITHUB_OUTPUT
|
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
else
|
|
echo "release_version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
|
|
echo "RELEASE_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
|
fi
|
|
|
|
- name: Update version in build.gradle.kts
|
|
if: ${{ github.event.inputs.update_version }}
|
|
run: |
|
|
sed -i "s/^version = .*/version = \"$RELEASE_VERSION\"/" build.gradle.kts
|
|
|
|
- name: Update version in app/package.json
|
|
if: ${{ github.event.inputs.update_version }}
|
|
run: |
|
|
jq ".version = \"$RELEASE_VERSION\"" app/package.json > app/package.json.tmp && mv app/package.json.tmp app/package.json
|
|
|
|
- name: Upload modified files
|
|
uses: actions/upload-artifact@v5
|
|
with:
|
|
name: modified-files
|
|
path: |
|
|
build.gradle.kts
|
|
app/package.json
|
|
|
|
build:
|
|
needs: setup
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
checks: write
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Download modified files
|
|
uses: actions/download-artifact@v6
|
|
with:
|
|
name: modified-files
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v5
|
|
|
|
- name: Run production build
|
|
env:
|
|
GAMEYFIN_KEYSTORE_PASSWORD: ${{ secrets.GAMEYFIN_KEYSTORE_PASSWORD }}
|
|
run: ./gradlew clean build -Pvaadin.productionMode=true
|
|
|
|
- name: Publish Test Report
|
|
uses: mikepenz/action-junit-report@v6
|
|
if: success() || failure() # always run even if the previous step fails
|
|
with:
|
|
report_paths: '**/build/test-results/test/TEST-*.xml'
|
|
|
|
- name: Upload build outputs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-outputs
|
|
path: |
|
|
app/build/libs/**
|
|
plugins/**/build/libs/**/*.jar
|
|
|
|
docker:
|
|
needs: [ setup, build ]
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
packages: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
variant: [ alpine, ubuntu ]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Download modified files
|
|
uses: actions/download-artifact@v5
|
|
with:
|
|
name: modified-files
|
|
|
|
- name: Download build outputs
|
|
uses: actions/download-artifact@v5
|
|
with:
|
|
name: build-outputs
|
|
path: .
|
|
|
|
- name: Generate container image tags
|
|
id: docker_tags
|
|
run: |
|
|
VERSION='${{ needs.setup.outputs.release_version }}'
|
|
GHCR_TAGS="ghcr.io/gameyfin/gameyfin:$VERSION"
|
|
if [[ "$VERSION" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
|
|
MAJOR=${BASH_REMATCH[1]}
|
|
MINOR=${BASH_REMATCH[2]}
|
|
PATCH=${BASH_REMATCH[3]}
|
|
GHCR_TAGS="ghcr.io/gameyfin/gameyfin:latest,ghcr.io/gameyfin/gameyfin:develop,ghcr.io/gameyfin/gameyfin:$VERSION,ghcr.io/gameyfin/gameyfin:$MAJOR.$MINOR,ghcr.io/gameyfin/gameyfin:$MAJOR"
|
|
fi
|
|
TAGS="$GHCR_TAGS"
|
|
echo "tags=$TAGS" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and push Docker image (${{ matrix.variant }})
|
|
uses: ./.github/actions/docker-build-push
|
|
with:
|
|
ghcr_username: ${{ github.actor }}
|
|
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
platforms: linux/arm64/v8,linux/amd64
|
|
tags: ${{ steps.docker_tags.outputs.tags }}
|
|
variant: ${{ matrix.variant }}
|
|
|
|
plugin_api:
|
|
needs: setup
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Download modified files
|
|
uses: actions/download-artifact@v6
|
|
with:
|
|
name: modified-files
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v5
|
|
|
|
- name: Build and push Plugin-API
|
|
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
|
|
env:
|
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSPHRASE }}
|
|
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRAL_USERNAME }}
|
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRAL_PASSWORD }}
|
|
|
|
finalize:
|
|
needs: [ docker, plugin_api ]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Download modified files
|
|
uses: actions/download-artifact@v6
|
|
with:
|
|
name: modified-files
|
|
|
|
- name: Commit version bump
|
|
if: ${{ github.event.inputs.update_version }}
|
|
uses: stefanzweifel/git-auto-commit-action@v7
|
|
with:
|
|
commit_message: 'chore: release v${{ github.event.inputs.version }}'
|
|
tagging_message: v${{ github.event.inputs.version }}
|
|
|
|
- name: Detect prerelease
|
|
id: detect_prerelease
|
|
run: |
|
|
if [[ "${{ github.event.inputs.version }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
|
|
echo "MAKE_LATEST=true" >> $GITHUB_ENV
|
|
else
|
|
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
|
|
echo "MAKE_LATEST=false" >> $GITHUB_ENV
|
|
fi
|
|
|
|
- name: Create GitHub release
|
|
if: ${{ github.event.inputs.update_version }}
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: v${{ github.event.inputs.version }}
|
|
prerelease: ${{ env.IS_PRERELEASE }}
|
|
make_latest: ${{ env.MAKE_LATEST }}
|