mirror of
https://github.com/gotson/komga.git
synced 2025-01-07 03:07:16 +08:00
ci: add Conveyor
This commit is contained in:
parent
96020fdbfa
commit
903993ec54
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -27,15 +27,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java: [ 17, 19 ]
|
|
||||||
name: Test JDK ${{ matrix.java }}
|
name: Test JDK ${{ matrix.java }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: 19
|
||||||
|
java-package: 'jdk'
|
||||||
|
distribution: 'temurin'
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
java-package: 'jdk'
|
java-package: 'jdk'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -46,13 +48,13 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: test-results-jdk-${{ matrix.java }}
|
name: test-results
|
||||||
path: komga/build/test-results/
|
path: komga/build/test-results/
|
||||||
- name: Upload Unit Test Reports
|
- name: Upload Unit Test Reports
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: test-reports-jdk-${{ matrix.java }}
|
name: test-reports
|
||||||
path: komga/build/reports/tests/
|
path: komga/build/reports/tests/
|
||||||
|
|
||||||
webui:
|
webui:
|
||||||
@ -125,6 +127,12 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
package-lock.json
|
package-lock.json
|
||||||
komga-webui/package-lock.json
|
komga-webui/package-lock.json
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '19'
|
||||||
|
java-package: 'jdk'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: 'gradle'
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
@ -146,16 +154,36 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
arguments: :komga:copyWebDist :komga:generateOpenApiDocs :komga:bootJar :komga-tray:jar
|
||||||
|
- name: Run Conveyor
|
||||||
|
uses: hydraulic-software/conveyor/actions/build@v10.1
|
||||||
|
with:
|
||||||
|
command: -f conveyor.ci.conf make site -o ./output/release
|
||||||
|
signing_key: ${{ secrets.CONVEYOR_SIGNING_KEY }}
|
||||||
|
agree_to_license: 1
|
||||||
|
env:
|
||||||
|
APPLE_ASP: ${{ secrets.APPLE_ASP }}
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
- name: Adjust Conveyor output
|
||||||
|
run: |
|
||||||
|
mkdir ./output/site
|
||||||
|
mv ./output/release/download.html ./output/site/index.html
|
||||||
|
mv ./output/release/icon.svg ./output/site/
|
||||||
|
- name: Deploy download page to Github Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./output/site
|
||||||
|
cname: download.komga.org
|
||||||
- name: JReleaser full release
|
- name: JReleaser full release
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
with:
|
with:
|
||||||
arguments: copyWebDist generateOpenApiDocs jreleaserFullRelease
|
arguments: jreleaserFullRelease
|
||||||
env:
|
env:
|
||||||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# workaround for https://github.com/jreleaser/jreleaser/issues/1232
|
|
||||||
JRELEASER_DOCKER_DEFAULT_PASSWORD: workaround
|
|
||||||
# workaround for https://github.com/jreleaser/jreleaser/discussions/1233
|
|
||||||
JRELEASER_DISTRIBUTIONS_KOMGA_DOCKER_REPOSITORY_ACTIVE: NEVER
|
|
||||||
- name: JReleaser release output
|
- name: JReleaser release output
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
11
conveyor.ci.conf
Normal file
11
conveyor.ci.conf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
include required("conveyor.conf")
|
||||||
|
|
||||||
|
app {
|
||||||
|
mac.certificate = apple.cer
|
||||||
|
|
||||||
|
mac.notarization {
|
||||||
|
app-specific-password = ${env.APPLE_ASP}
|
||||||
|
team-id = GCZZU2X3J2
|
||||||
|
apple-id = ${env.APPLE_ID}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user