Skip to content

Commit

Permalink
added seperate workflow to publish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrGri committed Jul 12, 2024
1 parent a45e758 commit 5f57a6e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: PlatformIO CI
name: build_firmware

on: [push]


# see e.g. https://cgrotz.github.io/2020-08-24-esp32_ci_cd_part2/

jobs:
build:
buildFirmware:
#runs-on: ubuntu-latest
runs-on: windows-latest

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: publish_artifacts_as_release


# Only trigger, when the build workflow succeeded, see https://stackoverflow.com/questions/62750603/github-actions-trigger-another-action-after-one-action-is-completed
on:
workflow_run:
workflows: ["build_firmware","build_simhub_plugin"]
types:
- completed


# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
jobs:

# https://docs.github.com/de/actions/using-workflows/storing-workflow-data-as-artifacts

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: Download math result for job 2
uses: actions/download-artifact@v4
with:
name: ["simhub_plugin","firmware_esp32"]
- name: Print the final result
shell: bash
run: |
echo The result is good

0 comments on commit 5f57a6e

Please sign in to comment.