mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-02 13:20:14 +08:00
[build] actions: Add retry for 'Publish Snapshots'
This commit is contained in:
parent
5358b3e4d0
commit
3a0cc8ef6a
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
# - windows-2022
|
# - windows-2022
|
||||||
- macos-12
|
- macos-12
|
||||||
env:
|
env:
|
||||||
gradleArgs: --scan "-Dmirai.target=jvm;android;!other" "-Pkotlin.compiler.execution.strategy=in-process" "-Dorg.gradle.jvmargs=-Xmx6000m" "-Dfile.encoding=UTF-8"
|
gradleArgs: --scan "-Dmirai.target=jvm;android;!other" "-Pkotlin.compiler.execution.strategy=in-process" "-Dorg.gradle.jvmargs=-Xmx6000m" "-Dfile.encoding=UTF-8"
|
||||||
@ -315,7 +315,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish Snapshots
|
- name: Publish Snapshots
|
||||||
if: ${{ github.event.pusher && env.isMac == 'true' }}
|
if: ${{ github.event.pusher && env.isMac == 'true' }}
|
||||||
run: ./gradlew publishAllPublicationsToMiraiRepoRepository ${{ env.gradleArgs }}
|
uses: nick-fields/retry@v2
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
command: ./gradlew publishAllPublicationsToMiraiRepoRepository ${{ env.gradleArgs }}
|
||||||
|
retry_on: error
|
||||||
|
max_attempts: 3
|
||||||
env:
|
env:
|
||||||
MIRAI_IS_SNAPSHOTS_PUBLISHING: true
|
MIRAI_IS_SNAPSHOTS_PUBLISHING: true
|
||||||
SNAPSHOTS_PUBLISHING_USER: ${{ secrets.SNAPSHOTS_PUBLISHING_USER }}
|
SNAPSHOTS_PUBLISHING_USER: ${{ secrets.SNAPSHOTS_PUBLISHING_USER }}
|
||||||
@ -336,16 +341,16 @@ jobs:
|
|||||||
- macos-12
|
- macos-12
|
||||||
- macos-11
|
- macos-11
|
||||||
include:
|
include:
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
targetName: mingwX64
|
targetName: mingwX64
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
targetName: linuxX64
|
targetName: linuxX64
|
||||||
- os: ubuntu-18.04
|
- os: ubuntu-18.04
|
||||||
targetName: linuxX64
|
targetName: linuxX64
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
targetName: macosX64
|
targetName: macosX64
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
targetName: macosX64
|
targetName: macosX64
|
||||||
env:
|
env:
|
||||||
# FIXME there must be two or more targets, or we'll get error on `@OptionalExpectation`
|
# FIXME there must be two or more targets, or we'll get error on `@OptionalExpectation`
|
||||||
# > Declaration annotated with '@OptionalExpectation' can only be used in common module sources
|
# > Declaration annotated with '@OptionalExpectation' can only be used in common module sources
|
||||||
|
Loading…
Reference in New Issue
Block a user