Skip to content

Commit

Permalink
ci(cd): will only be invoken via dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jun 16, 2023
1 parent 083cf3a commit ec2ee0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build, Test, Release

on: [push, pull_request]

permissions:
contents: write
issues: write
actions: write

jobs:
# generate date string to be embedded in builds
date-string:
Expand Down Expand Up @@ -221,3 +226,10 @@ jobs:
node-version: "18.x"

- run: npx semantic-release
id: semantic-release

- name: Trigger deployment workflow
if: steps.semantic-release.outcome == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh workflow run publish-firmware-bundles.yml
2 changes: 0 additions & 2 deletions .github/workflows/publish-firmware-bundles.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Publish firmware bundles to nRF Cloud

on:
release:
types: [published]
workflow_dispatch:

jobs:
Expand Down

0 comments on commit ec2ee0f

Please sign in to comment.