Update .gitlab-ci.yml file #26
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: Push component to https://components.espressif.com | |
on: | |
push: | |
branches: | |
- feature/ext_component_host | |
jobs: | |
upload_components: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- run: cp -r common host/ | |
- run: cp -r common slave/ | |
- run: mv host esp_host | |
- run: mv slave esp_slave | |
- run: ls -lrt | |
- run: cp -r esp_host/idf_component.yml ./ | |
- run: ls -lrt | |
- run: python -m pip install --upgrade idf-component-manager | |
- name: Upload host component to the component registry | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
directories: "esp_host" | |
namespace: "espressif" | |
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} | |
- run: ls -lrt | |
- run: cp -r esp_slave/idf_component.yml ./ | |
- run: ls -lrt | |
- name: Upload slave component to the component registry | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
directories: "esp_slave" | |
namespace: "espressif" | |
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} | |