forked from espressif/esp-wifi-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.64 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publish esp-wifi-remote
on:
workflow_run:
workflows: ["Build", "Compat checks"]
branches: [main]
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Publishes Tag, Release, and Uploads Component
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
token: "${{ secrets.GITHUB_TOKEN }}"
- 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 }}