From e529230f4bb97b4506c430aac96d5ddaef685dc4 Mon Sep 17 00:00:00 2001 From: "Mr.9You" <56989550+Mr9You@users.noreply.github.com> Date: Tue, 3 Jan 2023 03:16:37 +0800 Subject: [PATCH] ci(esp): fix push to the component registry on tag --- .github/workflows/esp_upload_component.yml | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/esp_upload_component.yml b/.github/workflows/esp_upload_component.yml index cb017c724..08edfe27a 100644 --- a/.github/workflows/esp_upload_component.yml +++ b/.github/workflows/esp_upload_component.yml @@ -1,23 +1,23 @@ -name: Push LVGL release to Espressif Component Service - -# If the commit is tagged, it will be uploaded. Other scenario silently fail. -on: - push: - branches: - - master - -jobs: - upload_components: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - with: - submodules: "recursive" - - - name: Upload component to component registry - uses: espressif/github-actions/upload_components@master - with: - name: "lvgl" - version: "git" - namespace: "lvgl" - api_token: ${{ secrets.ESP_IDF_COMPONENT_API_TOKEN }} +name: Push LVGL release to Espressif Component Service + +# If the commit is tagged, it will be uploaded. Other scenario silently fail. +on: + push: + tags: + - v* + +jobs: + upload_components: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: "recursive" + + - name: Upload component to component registry + uses: espressif/upload-components-ci-action@v1 + with: + name: "lvgl" + version: ${{ github.ref_name }} + namespace: "lvgl" + api_token: ${{ secrets.ESP_IDF_COMPONENT_API_TOKEN }}