Added support for implementing user defined modules in standard C-API #249
Workflow file for this run
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
name: Docs and Publish | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
env: | |
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_DEPLOY_URL_BASE }} | |
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_DEPLOY_SERVER }} | |
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_DEPLOY_SERVER_USER }} | |
DOCS_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_PRIVATEKEY }} | |
DOCS_DEPLOY_PATH_ORIG : ${{ secrets.DOCS_DEPLOY_PATH }} | |
jobs: | |
publish: | |
name: Publish Tag, Release, Docs, Component | |
runs-on: ubuntu-latest | |
# Skip running on forks since it won't have access to secrets | |
if: github.repository == 'espressif/esp-protocols' | |
steps: | |
- name: Checkout esp-protocols | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
submodules: recursive | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Check for version update | |
shell: bash | |
run: ./ci/detect_component_bump | |
- name: Tag merge commit | |
if: env.BUMP_VERSION != '' | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CUSTOM_TAG: ${{ env.BUMP_TAG }} | |
- name: Generate docs | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install doxygen clang python3-pip | |
python -m pip install breathe recommonmark esp-docs==1.4.1 | |
for comp in `ls components`; do | |
if [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then | |
cd $GITHUB_WORKSPACE/docs/${comp} | |
if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then | |
echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})" | |
./generate_docs ${{ env.BUMP_VERSION }} | |
else | |
echo "Building latest version of ${comp}" | |
./generate_docs | |
fi | |
fi | |
done |