Skip to content

Commit bf2d2e0

Browse files
Use steps from previous action (#213)
## Description <!--- Please describe what this PR is going to change --> ## Why is this needed <!--- Link to issue you have raised --> Fixes: # ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## How are existing users impacted? What migration steps/scripts do we need? <!--- Fixes a bug, unblocks installation, removes a component of the stack etc --> <!--- Requires a DB migration script, etc. --> ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents f9c2f7d + 933b1b5 commit bf2d2e0

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/build-all-matrix.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,26 +167,49 @@ jobs:
167167
name: Publish all Hooks to GitHub Releases
168168
needs: [ matrix_prep, build-hook-ensemble ]
169169
runs-on: ubuntu-latest
170+
if: github.ref == 'refs/heads/main'
170171
steps:
171172

173+
- name: Checkout code
174+
uses: actions/checkout@v4
175+
172176
- name: Download built Hook artifacts
173177
uses: actions/download-artifact@v4
174178
with:
175179
pattern: "hook-tarball-*"
176180
merge-multiple: true
177181
path: out
178182

183+
- name: Delete Tag
184+
run: |
185+
git tag -d latest || echo "no local tag to delete"
186+
git push origin :latest -f || echo "no remote tag to delete"
187+
179188
- name: Generate Release Notes
180189
run: |
181-
generated_release_notes=$(gh api 'repos/{owner}/{repo}/releases/generate-notes' -F tag_name=${{github.ref}} --jq .body)
190+
generated_release_notes=$(gh api 'repos/{owner}/{repo}/releases/generate-notes' -F tag_name=latest --jq .body)
182191
cat >>"$GITHUB_ENV" <<-EOF
183192
RELEASE_NOTES<<RELEASE_NOTES_EOF
193+
# :warning: :rotating_light: :boom: Note!!! :boom: :rotating_light: :warning:
194+
195+
The uploaded files will be updated on the next merge to main, as such download them before use to avoid surprises.
196+
197+
---
198+
Commit: ${{needs.validation.outputs.commitid}}
199+
---
200+
184201
$generated_release_notes
185202
RELEASE_NOTES_EOF
186203
EOF
187204
env:
188205
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
189206

207+
- name: Update Tag
208+
uses: rickstaa/action-create-tag@v1
209+
with:
210+
tag: latest
211+
message: "Latest development build"
212+
190213
- name: Generate checksum
191214
uses: jmgilman/actions-generate-checksum@v1
192215
with:
@@ -196,7 +219,10 @@ jobs:
196219
- name: Update latest release
197220
uses: softprops/action-gh-release@v2
198221
with:
222+
name: Hook Latest Development Build
199223
body: ${{env.RELEASE_NOTES}}
200224
files: |
201225
out/hook_*.tar.gz
202226
checksum.txt
227+
prerelease: true
228+
tag_name: latest

0 commit comments

Comments
 (0)