Skip to content

Commit ffd3736

Browse files
authored
Merge pull request #381 from gabsuren/feat/fix_console_and_deploy_6
Fixing deployment of console_simple_init finial
2 parents 93dd567 + a4cb1d9 commit ffd3736

File tree

4 files changed

+41
-15
lines changed

4 files changed

+41
-15
lines changed

.github/workflows/publish-docs-component.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ jobs:
5050
sudo apt-get -y install doxygen clang python3-pip
5151
python -m pip install breathe recommonmark esp-docs==1.4.1
5252
for comp in `ls components`; do
53-
cd $GITHUB_WORKSPACE/docs/${comp}
54-
if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then
55-
echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})"
56-
./generate_docs ${{ env.BUMP_VERSION }}
57-
else
58-
echo "Building latest version of ${comp}"
59-
./generate_docs
53+
if [ -d $GITHUB_WORKSPACE/docs/${comp} ]; then
54+
cd $GITHUB_WORKSPACE/docs/${comp}
55+
if [[ "${{ env.BUMP_COMPONENT }}" == "${comp}" ]]; then
56+
echo "Building specific version of ${comp} (${{ env.BUMP_VERSION }})"
57+
./generate_docs ${{ env.BUMP_VERSION }}
58+
else
59+
echo "Building latest version of ${comp}"
60+
./generate_docs
61+
fi
6062
fi
6163
done
6264
- name: Deploying generated docs
@@ -67,14 +69,16 @@ jobs:
6769
export GIT_VER=$(git describe --always)
6870
export GITHUB_REF_NAME=latest
6971
for comp in `ls components`; do
70-
echo "Deploying latest of ${comp}"
71-
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/${comp}
72-
export DOCS_DEPLOY_PATH=$DOCS_DEPLOY_PATH_ORIG/${comp}
73-
cd $GITHUB_WORKSPACE/docs/${comp}
74-
deploy-docs
72+
if [ -d $GITHUB_WORKSPACE/docs/${comp} ]; then
73+
echo "Deploying latest of ${comp}"
74+
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/${comp}
75+
export DOCS_DEPLOY_PATH=$DOCS_DEPLOY_PATH_ORIG/${comp}
76+
cd $GITHUB_WORKSPACE/docs/${comp}
77+
deploy-docs
78+
fi
7579
done;
7680
# Deploy docs with version path
77-
if [[ "${{ env.BUMP_VERSION }}" != "" ]]; then
81+
if [[ "${{ env.BUMP_VERSION }}" != "" ]] && [[ -d $GITHUB_WORKSPACE/docs/${comp} ]]; then
7882
echo "Deploying specific version of ${comp} (${{ env.BUMP_VERSION }})"
7983
cd $GITHUB_WORKSPACE/docs/${{ env.BUMP_COMPONENT }}
8084
export GITHUB_REF_NAME=${{ env.BUMP_VERSION }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
commitizen:
3+
bump_message: 'bump(console): $current_version -> $new_version'
4+
pre_bump_hooks: python ../../ci/changelog.py console_simple_init
5+
tag_format: console_simple_init-v$version
6+
version: 1.0.1
7+
version_files:
8+
- idf_component.yml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
## [1.0.1](https://github.com/espressif/esp-protocols/commits/console_simple_init-v1.0.1)
4+
5+
### Bug Fixes
6+
7+
- Fixed versioning, publishing and changelog generation ([3081f1a69c](https://github.com/espressif/esp-protocols/commit/3081f1a69c))
8+
9+
## [1.0.0](https://github.com/espressif/esp-protocols/commits/console_simple_init-v1.0.0)
10+
11+
12+
### Features
13+
14+
- [Added simple component for console initialization](https://github.com/espressif/esp-protocols/commit/1ac4e4177128a7b7188babd47d0e2bfa6bbb2517)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version: 1.0.0
2-
url: https://github.com/espressif/esp-protocols/tree/master/components/console_simple_init
1+
version: 1.0.1
32
description: The component provides helper functions for easy initialization and start of esp console.
3+
url: https://github.com/espressif/esp-protocols/tree/master/components/console_simple_init
44
dependencies:
55
idf:
66
version: '>=5.0'

0 commit comments

Comments
 (0)