-
Notifications
You must be signed in to change notification settings - Fork 205
121 lines (100 loc) · 2.84 KB
/
gh-pages.yml
File metadata and controls
121 lines (100 loc) · 2.84 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Build examples for Launchpad
# This job:
# - Build all examples for Launchpad
# - Prepare release check table
# - Deploy all to github-pages (config.toml, release_checker.html)
on:
push:
branches:
- master
permissions:
pages: write
id-token: write
jobs:
build-launchpad:
env:
component_manager_ver: "2.2.*"
strategy:
matrix:
idf_ver: ["release-v5.5"]
runs-on: ubuntu-latest
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Upgrade component manager
shell: bash
run: |
. ${IDF_PATH}/export.sh
pip install idf-component-manager==${{ env.component_manager_ver }} --upgrade
pip install -U "esp-idf-kconfig<3"
- name: Action for building binaries and config.toml
env:
IDF_EXTRA_ACTIONS_PATH: "${{ github.workspace }}/examples"
uses: espressif/idf-examples-launchpad-ci-action@v1.0.4
with:
idf_version: ${{ matrix.idf_ver }}
parallel_count: 5
config_file: examples/.idf_build_apps.toml
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
name: built_files
path: binaries/
release-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0 # all git history
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run release_checker.py
run: |
pip install requests pyyaml tabulate wcwidth pytz
mkdir site
python .github/ci/release_checker.py > site/release_checker.html
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
name: release_checker
path: site/
deploy:
needs:
- build-launchpad
- release-check
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download built files
uses: actions/download-artifact@v8
with:
name: built_files
path: binaries/
- name: Download built files
uses: actions/download-artifact@v8
with:
name: release_checker
path: site/
- name: Prepare combined site
run: |
mkdir pages
cp -r binaries/* pages/
cp -r site/* pages/
- name: Upload combined site to GitHub Pages
uses: actions/upload-pages-artifact@v4
with:
path: pages/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4