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 components to https://components.espressif.com | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'grid_common/**' | |
- 'grid_esp/components/**' | |
- '.github/workflows/grid_common_package.yml' | |
jobs: | |
upload_components: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set Date | |
run: echo "action_date=$(date +'v1.%Y%m%d.%H%M')" >> $GITHUB_ENV | |
- name: Check Date | |
run: echo ${{ env.action_date }} | |
- name: Upload components to the component registry | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
directories: "grid_common" | |
namespace: "sukuwc" | |
name: "grid_common" | |
version: ${{ env.action_date }} | |
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} | |
- name: Upload components to the component registry | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
directories: "grid_esp/components/grid_esp32_led" | |
namespace: "sukuwc" | |
name: "grid_esp32_led" | |
version: ${{ env.action_date }} | |
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} |