Merge pull request #478 from EnviroDIY/develop #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
# Sequence of patterns matched against refs/tags | |
paths: | |
- 'VERSION' # Push events when the VERSION file changes | |
workflow_dispatch: | |
inputs: | |
include_dependencies: | |
description: 'True to include a zip file with dependencies in the release' | |
required: false | |
type: boolean | |
default: true | |
name: Create a New Release | |
env: | |
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} | |
jobs: | |
wait_for_checks: | |
if: ${{ github.event_name != 'workflow_dispatch' }} | |
strategy: | |
matrix: | |
req_workflow: | |
[ | |
verify_library_structure.yaml, | |
build_examples.yaml, | |
build_documentation.yaml, | |
] | |
name: Wait for Checks to complete | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait on Workflow | |
uses: ArcticLampyrid/[email protected] | |
with: | |
workflow: ${{ matrix.req_workflow }} | |
sha: ${{ github.sha || github.event.pull_request.head.sha || github.event.pull_request.head.ref }} # optional | |
allowed-conclusions: | | |
success | |
cancelled | |
skipped | |
release: | |
name: Prepare a new release | |
needs: [wait_for_checks] | |
if: | | |
always() && | |
(needs.wait_for_checks.result == 'success' || needs.wait_for_checks.result == 'skipped') | |
uses: EnviroDIY/workflows/.github/workflows/prepare_release.yaml@main | |
secrets: inherit | |
with: | |
include_dependencies: ${{ ( true ) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') }} |