Skip to content

Commit

Permalink
Update upload_to_idf_component_registry.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Augtons authored Jul 2, 2023
1 parent fc062b6 commit 3795c29
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/upload_to_idf_component_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload To IDF Component Registry

on:
release:
types: [published, deleted]
types: [published]

jobs:
upload:
Expand All @@ -19,25 +19,9 @@ jobs:

- name: Install IDF Component Manager
run: pip install --upgrade idf-component-manager

- name: Get Component Version
id: get-version
run: |
VERSION=$(python ./ci/get-version.py ./idf_component.yml)
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
echo "Got Version: ${{ steps.get-version.outputs.VERSION }}"

- name: Show IDF Component Manager Version
run: pip show idf-component-manager

- name: Upload Component
if: github.event.action == 'published'
run: >
compote component upload --namespace augtons --name FreeRTOS-Cpp
--allow-existing --version ${{ steps.get-version.outputs.VERSION }}
- name: Delete Component
if: github.event.action == 'deleted'
run: >
compote component delete --namespace augtons --name FreeRTOS-Cpp
--version ${{ steps.get-version.outputs.VERSION }}
run: compote component upload --namespace augtons --name FreeRTOS-Cpp --allow-existing

0 comments on commit 3795c29

Please sign in to comment.