diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 12 | ||||
-rw-r--r-- | .github/workflows/release.yml | 16 |
2 files changed, 24 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62816b1..e773d76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,17 @@ jobs: with: java-version: 17 distribution: temurin - cache: gradle + + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + **/loom-cache + **/prebundled-jars + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Chmod Gradle run: chmod +x ./gradlew diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2c7bb7..2f79a05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,13 +29,23 @@ jobs: with: java-version: 17 distribution: temurin - cache: gradle + + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + **/loom-cache + **/prebundled-jars + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Chmod Gradle run: chmod +x ./gradlew - name: Get version number - run: echo '::set-output name=VERSION_NUMBER::$((47 + ${{ github.run_number }}))' + run: echo '::set-output name=VERSION_NUMBER::$(( ${{ secrets.BUILD_OFFSET }} + ${{ github.run_number }}))' id: version - name: Publish @@ -45,4 +55,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: oneconfig-artifacts - path: versions/**/build/libs/
\ No newline at end of file + path: versions/**/build/libs/ |