Skip to content

Commit

Permalink
fixup: Change to address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Balaji Srinivasan <[email protected]>
  • Loading branch information
Balaji Srinivasan committed Jun 7, 2024
1 parent 61d70f9 commit 45478eb
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
# Workflow that makes a github release.
name: MakeGithubRelease
# Workflow that attaches additional assets to github release.
name: Attach Release Assets

# Trigger the workflow when a new branch or a tag is created.
# There is no separate event for a creation of tag. But we choose to run the steps in this
# workflow only when the github ref was a tag.
on: create
on:
release:
types: [created]

jobs:
trigger-build:
if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/build.yml

trigger-dfu-check:
if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/dfu_check.yml

trigger-target-test:
if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/on_target.yml

make-release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
# Only make a release if the above jobs are passing
needs: [trigger-build, trigger-dfu-check, trigger-target-test]
env:
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 45478eb

Please sign in to comment.