Skip to content

Commit

Permalink
Add the ability for dry-runs in the esp-idf upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Aug 22, 2024
1 parent 2e9ebd1 commit 4c8d0f1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/upload_esp_idf_component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,36 @@ name: Upload component to ESP-IDF component registry

on:
workflow_dispatch:
inputs:
release:
type: boolean
default: false
required: false
description: "Release? Uploads to esp-idf component registry if true"

jobs:
upload_components:
runs-on: ubuntu-22.04
container: espressif/idf:latest
steps:
- uses: actions/checkout@v4
- name: Upload component
if: github.event.inputs.release == 'true'
uses: espressif/upload-components-ci-action@v1
with:
name: "slint"
namespace: "slint"
api_token: ${{ secrets.ESP_IDF_COMPONENTS_TOKEN }}
directories: "api/cpp/esp-idf/slint"
- name: Package component
if: github.event.inputs.release != 'true'
working-directory: "api/cpp/esp-idf/slint"
run: |
. ${IDF_PATH}/export.sh
compote component pack --name slint --namespace slint
- name: Archive component
if: github.event.inputs.release != 'true'
uses: actions/upload-artifact@v4
with:
path: "api/cpp/esp-idf/slint/dist/*"

0 comments on commit 4c8d0f1

Please sign in to comment.