2024-11-12 23:22:15 -05:00
|
|
|
steps:
|
2022-04-15 02:15:34 -04:00
|
|
|
build:
|
2024-11-12 23:52:07 -05:00
|
|
|
image: espressif/idf:v5.2.2
|
|
|
|
when:
|
|
|
|
- event: [ tag, push, manual ]
|
2022-04-15 02:15:34 -04:00
|
|
|
commands:
|
|
|
|
- git submodule update --init
|
|
|
|
- if [ -f sdkconfig ]; then
|
|
|
|
- rm sdkconfig
|
|
|
|
- fi
|
|
|
|
- . /opt/esp/idf/export.sh
|
|
|
|
- idf.py reconfigure
|
|
|
|
- idf.py build
|
2024-11-12 23:52:07 -05:00
|
|
|
release:
|
|
|
|
image: woodpeckerci/plugin-release
|
|
|
|
secrets: [ ACCESS_TOKEN ]
|
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
settings:
|
|
|
|
log_level: debug
|
|
|
|
title: 'Release ${CI_COMMIT_TAG}'
|
|
|
|
files:
|
2024-11-13 11:37:48 -05:00
|
|
|
- 'build/barback.bin'
|
2024-11-12 23:52:07 -05:00
|
|
|
api_key:
|
|
|
|
from_secret: ACCESS_TOKEN
|
|
|
|
generate_release_notes: true
|
|
|
|
overwrite: true
|
|
|
|
upload-url: https://git.oit.cloud/repos/${CI_REPO}/releases
|