-
Notifications
You must be signed in to change notification settings - Fork 109
65 lines (53 loc) · 1.42 KB
/
build-examples-gh-pages-on-push.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
59
60
61
62
63
64
65
name: "ESP-IDF build examples to github pages (push)"
on:
push:
branches:
- master
jobs:
build:
strategy:
matrix:
idf_ver: ["v5.3"]
runs-on: ubuntu-latest
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Upgrade component manager
shell: bash
run: |
. ${IDF_PATH}/export.sh
pip install idf-component-manager==1.* --upgrade
- name: Action for building binaries and config.toml
uses: espressif/[email protected]
with:
idf_version: ${{ matrix.idf_ver }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: built_files
path: binaries/
deploy:
needs: build
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@v3
with:
name: built_files
path: binaries/
- name: Upload built files to gh pages
uses: actions/upload-pages-artifact@v2
with:
path: binaries/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2