Publish esp-wifi-remote #3
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: Publish esp-wifi-remote | ||
on: | ||
workflow_run: | ||
workflows: ["Build", "Compat checks"] | ||
branches: [main] | ||
types: | ||
- completed | ||
jobs: | ||
publish: | ||
Check failure on line 11 in .github/workflows/publish.yml GitHub Actions / Publish esp-wifi-remoteInvalid workflow file
|
||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
name: Publishes Tag, Release, and Uploads Component | ||
needs: build_idf_examples_with_wifi_remote | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout protocols | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: espressif/esp-protocols | ||
ref: wifi_remote-v0.4.0 | ||
sparse-checkout: | | ||
ci/detect_component_bump | ||
sparse-checkout-cone-mode: false | ||
path: protocols | ||
- name: Check for version update | ||
shell: bash | ||
run: $GITHUB_WORKSPACE/protocols/ci/detect_component_bump | ||
- name: Tag merge commit | ||
if: env.BUMP_VERSION != '' | ||
uses: anothrNick/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CUSTOM_TAG: ${{ env.BUMP_TAG }} | ||
- name: Create Release | ||
if: env.BUMP_VERSION != '' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: "release_notes.md" | ||
tag_name: ${{ env.BUMP_TAG }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload esp_wifi_remote to IDF Component Registry | ||
uses: espressif/upload-components-ci-action@v1 | ||
with: | ||
directories: > | ||
components/esp_wifi_remote; | ||
namespace: "espressif" | ||
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} |