This repository contains shared workflows for esp-idf-lib. All the workflows
are reusable workflows, meaning, they are supposed to be called by other
workflows.
Here is an example to call do-something.yml from other repositories.
---
name: Do something
on: push
jobs:
publish:
uses: esp-idf-lib/shared-workflows/.github/workflows/do-something.yml@mainNote
Specify @main as the workflow version. This ensures all the components use
the latest workflows.
These workflows are enabled by default when a repository is created from esp-idf-lib/template-component.
The workflow builds the docs and, optionally, publishes the HTML files to GitHub Pages. It needs additional permissions.
---
name: Publish HTML files on GitHub Pages
on: release
permissions:
# required by actions/deploy-pages
pages: write
id-token: write
jobs:
publish:
uses: esp-idf-lib/shared-workflows/.github/workflows/build-docs.yml@main
with:
publish: trueThe workflow builds all the examples under examples.
The workflow publishes the component to ESP Component Registry. An input,
components is required. See
the workflow for more
details.
Note
The workflows uses
espressif/upload-components-ci-action
internally. The GitHub Action needs an ESP Component Registry Token. Because
the token is set at the organization level (ESP_TOKEN) as a secret, no token is
required when you call this workflow.
The workflow validates code style.
The workflow validates a component. The rules are written in Ruby RSpec. See spec directory for more details about the rules.
The workflow validates a component with ESP Component Registry's API.