aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml16
1 files changed, 13 insertions, 3 deletions
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/