Skip to content

Commit

Permalink
Merge pull request #7 from brentru/workflow-reusable-2
Browse files Browse the repository at this point in the history
Workflow reusable 2
  • Loading branch information
brentru authored Mar 24, 2022
2 parents 3e74018 + 616cd25 commit cbde6d9
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 295 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-clang-doxy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# SPDX-FileCopyrightText: Adafruit Industries, 2022
# SPDX-FileCopyrightText: Brent Rubell for Adafruit Industries, 2022
#
# SPDX-License-Identifier: MIT
name: WipperSnapper Build CI

on:
pull_request:
workflow_call:
secrets:
token:
Expand Down Expand Up @@ -241,7 +242,7 @@ jobs:
clang_and_doxy:
runs-on: ubuntu-latest
needs: [build-samd, build-esp32, build-esp32s2, build-esp8266]
needs: [build-samd, build-esp32, build-esp32s2, build-esp8266, build-samd-non-fs]
steps:
- uses: actions/setup-python@v1
with:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/release-callee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: Brent Rubell for Adafruit Industries, 2022
#
# SPDX-License-Identifier: MIT
name: WipperSnapper Release Callee

on:
workflow_call:

jobs:
release-wippersnapper:
name: Release WipperSnapper
runs-on: ubuntu-latest
steps:
- name: Download build artifacts from build-platform steps
uses: actions/download-artifact@v2
with:
name: build-files
- name: List Files
run: ls
- name: Upload Assets to the GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
wippersnapper.*.uf2
wippersnapper.*.bin
wippersnapper.*.zip
17 changes: 17 additions & 0 deletions .github/workflows/release-caller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: Brent Rubell for Adafruit Industries, 2022
#
# SPDX-License-Identifier: MIT
name: WipperSnapper Release Workflow

on:
release:

jobs:
call-workflow-build:
uses: brentru/Adafruit_Wippersnapper_Arduino/.github/workflows/build-clang-doxy.yml@workflow-reusable-2
secrets:
token: ${{ secrets.TOKEN }}

call-workflow-release:
needs: call-workflow-build
uses: brentru/Adafruit_Wippersnapper_Arduino/.github/workflows/release-callee.yml@workflow-reusable-2
283 changes: 0 additions & 283 deletions .github/workflows/release-reusable.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit cbde6d9

Please sign in to comment.