Write GitHub Actions scripts #40
21
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
|||||||
|
name: Gradle build
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
on:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
push:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
branches: [ dev, master ]
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
pull_request:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
jobs:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
build:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
runs-on: ubuntu-latest
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
timeout-minutes: 40
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
steps:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
- uses: actions/checkout@v2
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
- uses: actions/setup-java@v2.5.0
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
with:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
java-version: 11
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
distribution: liberica
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
- uses: gradle/gradle-build-action@v2
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
with:
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
|||||||
|
arguments: build
|
||||||
Why do you insist on using manual caches? Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ? What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
|
24
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Gradle publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
release:
|
||||||
|
types: [ created ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 40
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-java@v2.5.0
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
distribution: liberica
|
||||||
|
- uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
arguments: |
|
||||||
|
publishAllPublicationsToSpaceRepository
|
||||||
|
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
||||||
|
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
1
gradle.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
kotlin.code.style=official
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
Why do you insist on using manual caches?
Why do you insist on using manual caches?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
c6258e72fb/.github/workflows/build.yml (L20)
c6258e72fb/.github/workflows/build.yml (L20)