mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Update github actions
This commit is contained in:
47
.github/workflows/Build.yml
vendored
47
.github/workflows/Build.yml
vendored
@@ -50,21 +50,24 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: ${{ matrix.shell }}
|
shell: ${{ matrix.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
architecture: ${{ matrix.arch }}
|
architecture: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- name: Set up gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
|
||||||
- name: Setup Cl
|
- name: Setup Cl
|
||||||
run: ${{ matrix.setupCl }}
|
run: ${{ matrix.setupCl }}
|
||||||
|
|
||||||
- name: Setup MacOS Keychain
|
- name: Setup MacOS Keychain
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
uses: apple-actions/import-codesign-certs@v2
|
||||||
if: ${{ matrix.runtime == 'osx-x64' }}
|
if: ${{ matrix.runtime == 'osx-x64' }}
|
||||||
with:
|
with:
|
||||||
p12-file-base64: ${{ secrets.APPLE_CERT }}
|
p12-file-base64: ${{ secrets.APPLE_CERT }}
|
||||||
@@ -72,28 +75,28 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
with:
|
run: >
|
||||||
arguments: >
|
./gradlew
|
||||||
${{ matrix.build }}
|
${{ matrix.build }}
|
||||||
-Pcompose.desktop.mac.sign=true
|
-Pcompose.desktop.mac.sign=true
|
||||||
-Pcompose.desktop.mac.signing.identity=${{ secrets.APPLE_IDENTITY }}
|
-Pcompose.desktop.mac.signing.identity=${{ secrets.APPLE_IDENTITY }}
|
||||||
-Pcompose.desktop.mac.notarization.appleID=${{ secrets.APPLE_ID }}
|
-Pcompose.desktop.mac.notarization.appleID=${{ secrets.APPLE_ID }}
|
||||||
-Pcompose.desktop.mac.notarization.password=${{ secrets.APPLE_PASSWORD }}
|
-Pcompose.desktop.mac.notarization.password=${{ secrets.APPLE_PASSWORD }}
|
||||||
-Pcompose.desktop.mac.notarization.teamID=${{ secrets.APPLE_TEAM_ID }}
|
-Pcompose.desktop.mac.notarization.teamID=${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
|
||||||
- name: Sign APK
|
- name: Sign APK
|
||||||
uses: r0adkll/sign-android-release@v1
|
uses: ilharp/sign-android-release@v1
|
||||||
if: ${{ matrix.runtime == 'android' }}
|
if: ${{ matrix.runtime == 'android' }}
|
||||||
with:
|
with:
|
||||||
releaseDirectory: android/build/outputs/apk/release
|
releaseDirectory: android/build/outputs/apk/release
|
||||||
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
|
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
|
||||||
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
|
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||||
keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
|
keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
|
||||||
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||||
|
|
||||||
# Upload runner package tar.gz/zip as artifact
|
# Upload runner package tar.gz/zip as artifact
|
||||||
- name: Publish Artifact
|
- name: Publish Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: runner-package-${{ matrix.runtime }}
|
name: runner-package-${{ matrix.runtime }}
|
||||||
path: |
|
path: |
|
||||||
@@ -101,11 +104,11 @@ jobs:
|
|||||||
desktop/build/compose/binaries/main-release/*/
|
desktop/build/compose/binaries/main-release/*/
|
||||||
desktop/build/compose/jars/
|
desktop/build/compose/jars/
|
||||||
!desktop/build/compose/binaries/main/app/
|
!desktop/build/compose/binaries/main/app/
|
||||||
${{ env.SIGNED_RELEASE_FILE }}
|
${{ env.ANDROID_SIGNED_FILE }}
|
||||||
|
|
||||||
# Upload runner errors
|
# Upload runner errors
|
||||||
- name: Upload error logs
|
- name: Upload error logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
name: runner-errors-${{ matrix.runtime }}
|
name: runner-errors-${{ matrix.runtime }}
|
||||||
@@ -117,7 +120,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -137,7 +140,7 @@ jobs:
|
|||||||
|
|
||||||
# Upload runner package tar.gz/zip as artifact
|
# Upload runner package tar.gz/zip as artifact
|
||||||
- name: Publish Artifact
|
- name: Publish Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: runner-package-linux-fedora-x64
|
name: runner-package-linux-fedora-x64
|
||||||
path: |
|
path: |
|
||||||
@@ -148,7 +151,7 @@ jobs:
|
|||||||
|
|
||||||
# Upload runner errors
|
# Upload runner errors
|
||||||
- name: Upload error logs
|
- name: Upload error logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
name: runner-errors-linux-fedora-x64
|
name: runner-errors-linux-fedora-x64
|
||||||
@@ -160,12 +163,12 @@ jobs:
|
|||||||
needs: [ BuildBinaries,BuildRpm ]
|
needs: [ BuildBinaries,BuildRpm ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Fix rpm java dependency
|
- name: Fix rpm java dependency
|
||||||
uses: Syer10/Fedora-Java17-Action@v1
|
uses: Syer10/Fedora-Java17-Action@v1
|
||||||
|
|||||||
4
.github/workflows/Check.yml
vendored
4
.github/workflows/Check.yml
vendored
@@ -16,10 +16,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repo
|
- name: Clone repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Validate Gradle Wrapper
|
- name: Validate Gradle Wrapper
|
||||||
uses: gradle/wrapper-validation-action@v1
|
uses: gradle/wrapper-validation-action@v2
|
||||||
|
|
||||||
# run_tests:
|
# run_tests:
|
||||||
# name: Run Tests
|
# name: Run Tests
|
||||||
|
|||||||
54
.github/workflows/Preview.yml
vendored
54
.github/workflows/Preview.yml
vendored
@@ -50,21 +50,24 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: ${{ matrix.shell }}
|
shell: ${{ matrix.shell }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
architecture: ${{ matrix.arch }}
|
architecture: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- name: Set up gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3
|
||||||
|
|
||||||
- name: Setup Cl
|
- name: Setup Cl
|
||||||
run: ${{ matrix.setupCl }}
|
run: ${{ matrix.setupCl }}
|
||||||
|
|
||||||
- name: Setup MacOS Keychain
|
- name: Setup MacOS Keychain
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
uses: apple-actions/import-codesign-certs@v2
|
||||||
if: ${{ matrix.runtime == 'osx-x64' }}
|
if: ${{ matrix.runtime == 'osx-x64' }}
|
||||||
with:
|
with:
|
||||||
p12-file-base64: ${{ secrets.APPLE_CERT }}
|
p12-file-base64: ${{ secrets.APPLE_CERT }}
|
||||||
@@ -77,31 +80,30 @@ jobs:
|
|||||||
echo "COMMIT_COUNT=$commit_count" >> $GITHUB_ENV
|
echo "COMMIT_COUNT=$commit_count" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: gradle/gradle-build-action@v2
|
run: >
|
||||||
with:
|
./gradlew
|
||||||
arguments: >
|
${{ matrix.build }}
|
||||||
${{ matrix.build }}
|
-Pcompose.desktop.mac.sign=true
|
||||||
-Pcompose.desktop.mac.sign=true
|
-Pcompose.desktop.mac.signing.identity=${{ secrets.APPLE_IDENTITY }}
|
||||||
-Pcompose.desktop.mac.signing.identity=${{ secrets.APPLE_IDENTITY }}
|
-Pcompose.desktop.mac.notarization.appleID=${{ secrets.APPLE_ID }}
|
||||||
-Pcompose.desktop.mac.notarization.appleID=${{ secrets.APPLE_ID }}
|
-Pcompose.desktop.mac.notarization.password=${{ secrets.APPLE_PASSWORD }}
|
||||||
-Pcompose.desktop.mac.notarization.password=${{ secrets.APPLE_PASSWORD }}
|
-Pcompose.desktop.mac.notarization.teamID=${{ secrets.APPLE_TEAM_ID }}
|
||||||
-Pcompose.desktop.mac.notarization.teamID=${{ secrets.APPLE_TEAM_ID }}
|
-Ppreview="${{ env.COMMIT_COUNT }}"
|
||||||
-Ppreview="${{ env.COMMIT_COUNT }}"
|
--stacktrace
|
||||||
--stacktrace
|
|
||||||
|
|
||||||
- name: Sign APK
|
- name: Sign APK
|
||||||
uses: r0adkll/sign-android-release@v1
|
uses: ilharp/sign-android-release@v1
|
||||||
if: ${{ matrix.runtime == 'android' }}
|
if: ${{ matrix.runtime == 'android' }}
|
||||||
with:
|
with:
|
||||||
releaseDirectory: android/build/outputs/apk/release
|
releaseDirectory: android/build/outputs/apk/release
|
||||||
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
|
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
|
||||||
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
|
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||||
keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
|
keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
|
||||||
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||||
|
|
||||||
# Upload runner package tar.gz/zip as artifact
|
# Upload runner package tar.gz/zip as artifact
|
||||||
- name: Publish Artifact
|
- name: Publish Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: runner-package-${{ matrix.runtime }}
|
name: runner-package-${{ matrix.runtime }}
|
||||||
path: |
|
path: |
|
||||||
@@ -109,11 +111,11 @@ jobs:
|
|||||||
desktop/build/compose/binaries/main-release/*/
|
desktop/build/compose/binaries/main-release/*/
|
||||||
desktop/build/compose/jars/
|
desktop/build/compose/jars/
|
||||||
!desktop/build/compose/binaries/main/app/
|
!desktop/build/compose/binaries/main/app/
|
||||||
${{ env.SIGNED_RELEASE_FILE }}
|
${{ env.ANDROID_SIGNED_FILE }}
|
||||||
|
|
||||||
# Upload runner errors
|
# Upload runner errors
|
||||||
- name: Upload error logs
|
- name: Upload error logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
name: runner-errors-${{ matrix.runtime }}
|
name: runner-errors-${{ matrix.runtime }}
|
||||||
@@ -125,7 +127,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -145,7 +147,7 @@ jobs:
|
|||||||
|
|
||||||
# Upload runner package tar.gz/zip as artifact
|
# Upload runner package tar.gz/zip as artifact
|
||||||
- name: Publish Artifact
|
- name: Publish Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: runner-package-linux-fedora-x64
|
name: runner-package-linux-fedora-x64
|
||||||
path: |
|
path: |
|
||||||
@@ -156,7 +158,7 @@ jobs:
|
|||||||
|
|
||||||
# Upload runner errors
|
# Upload runner errors
|
||||||
- name: Upload error logs
|
- name: Upload error logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
with:
|
with:
|
||||||
name: runner-errors-linux-fedora-x64
|
name: runner-errors-linux-fedora-x64
|
||||||
@@ -168,12 +170,12 @@ jobs:
|
|||||||
needs: [ BuildBinaries,BuildRpm ]
|
needs: [ BuildBinaries,BuildRpm ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Fix rpm java dependency
|
- name: Fix rpm java dependency
|
||||||
uses: Syer10/Fedora-Java17-Action@v1
|
uses: Syer10/Fedora-Java17-Action@v1
|
||||||
@@ -228,7 +230,7 @@ jobs:
|
|||||||
${{ env.COMMIT_LOGS }}
|
${{ env.COMMIT_LOGS }}
|
||||||
|
|
||||||
- name: Prune old releases
|
- name: Prune old releases
|
||||||
uses: dev-drprasad/delete-older-releases@v0.2.0
|
uses: dev-drprasad/delete-older-releases@v0.3.3
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user