Skip to content

Commit

Permalink
add caches to release
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jul 3, 2024
1 parent 2359cc5 commit 2464fa0
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2464fa0

Please sign in to comment.