Skip to content

Commit

Permalink
fix releases: need unique filenames for checksums.csv (#885)
Browse files Browse the repository at this point in the history
* fix releases: need unique filenames for checksums.csv

* allow manual triggers
  • Loading branch information
artoonie authored Sep 23, 2024
1 parent 85b3455 commit fc2b8d5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [ published ]
schedule:
- cron: '0 12 1,15 * *' # On the 1st and 15th of the month at noon
workflow_dispatch:
## 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:
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
id: checksumsfn
shell: bash
run: |
echo "FILEPATH=cache/checksums.csv" >> $GITHUB_OUTPUT
echo "FILEPATH=cache/${{ steps.basefn.outputs.FILEPATH }}.checksums.csv" >> $GITHUB_OUTPUT
- name: "Generate SHA1 and SHA256 for each Maven dependency"
shell: bash
Expand Down Expand Up @@ -189,15 +190,15 @@ jobs:
- uses: dev-drprasad/[email protected]
# Note: to update the date of the release, it must be deleted and then recreated
if: github.event_name == 'release' || github.event_name == 'schedule'
if: github.event_name == 'release' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
with:
tag_name: build-${{ github.ref_name }}
delete_release: true
github_token: ${{ secrets.GITHUB_TOKEN }}

- 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' || github.event_name == 'workflow_dispatch'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ steps.basefn.outputs.FILEPATH }}*
Expand All @@ -208,7 +209,7 @@ jobs:

- name: "Upload cache 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' || github.event_name == 'workflow_dispatch'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cache/*
Expand Down

0 comments on commit fc2b8d5

Please sign in to comment.