From 2464fa0ca2a6e80ac5f99724c3431be23c2b1374 Mon Sep 17 00:00:00 2001 From: Armin Samii Date: Wed, 3 Jul 2024 13:46:29 -0700 Subject: [PATCH] add caches to release --- .github/workflows/release.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1c5e7f1..0c87c292 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,11 +5,11 @@ on: types: [ published ] schedule: - cron: '0 12 1,15 * *' # On the 1st and 15th of the month at noon -## To test this workflow without creating a release, uncomment the following and add a branch name (making sure "push" -## is at the same indent level as "release": -# push: -# branches: -# - 'branch-name' +# To test this workflow without creating a release, uncomment the following and add a branch name (making sure "push" +# is at the same indent level as "release": + push: + branches: + - 'double-develop' jobs: release: @@ -176,7 +176,6 @@ jobs: name: Package if-no-files-found: error overwrite: true - retention-days: 90 path: | ${{ github.workspace }}/${{ steps.zipfn.outputs.FILEPATH }} ${{ github.workspace }}/${{ steps.zipfn.outputs.FILEPATH }}.sha512 @@ -198,10 +197,20 @@ jobs: - name: "Upload binaries to release" uses: svenstaro/upload-release-action@v2 - if: github.event_name == 'release' || github.event_name == 'schedule' + #if: github.event_name == 'release' || github.event_name == 'schedule' with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: build/${{ steps.basefn.outputs.FILEPATH }}* tag: build-${{ github.ref_name }} overwrite: true file_glob: true + + - name: "Upload cache to release" + uses: svenstaro/upload-release-action@v2 + #if: github.event_name == 'release' || github.event_name == 'schedule' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: cache/* + tag: build-${{ github.ref_name }} + overwrite: true + file_glob: true