Skip to content

Commit

Permalink
[github] Reuse GitHub workflows
Browse files Browse the repository at this point in the history
kuba2k2 committed Aug 29, 2023

Verified

This commit was signed with the committer’s verified signature.
kuba2k2 Kuba Szczodrzyński
1 parent 27393e4 commit 631ef6b
Showing 5 changed files with 37 additions and 86 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/lint.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/platformio-publish.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/push-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Push (dev), Pull Request
on:
push:
branches: ["**"]
pull_request:
jobs:
lint-clang:
name: Run Clang lint
uses: kuba2k2/kuba2k2/.github/workflows/lint-clang.yml@master
lint-python:
name: Run Python lint
uses: kuba2k2/kuba2k2/.github/workflows/lint-python.yml@master
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Deploy docs on GitHub Pages

name: Push (master)
on:
push:
branches:
- master

branches: ["master"]
workflow_dispatch:
jobs:
docs:
name: Deploy docs
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release
on:
push:
tags: ["v*.*.*"]
jobs:
lint-clang:
name: Run Clang lint
uses: kuba2k2/kuba2k2/.github/workflows/lint-clang.yml@master
publish-pio-platform:
name: Publish PlatformIO platform
needs:
- lint-clang
uses: kuba2k2/kuba2k2/.github/workflows/publish-pio-platform.yml@master
secrets:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
gh-release:
name: Publish GitHub release
needs:
- publish-pio-platform
uses: kuba2k2/kuba2k2/.github/workflows/gh-release.yml@master
permissions:
contents: write

0 comments on commit 631ef6b

Please sign in to comment.