Skip to content

Commit

Permalink
Merge pull request espressif#221 from XDanielPaul/master
Browse files Browse the repository at this point in the history
ci: Add example building workflow for launchpad (BSP-378)
  • Loading branch information
tore-espressif authored Sep 25, 2023
2 parents e22d008 + aa725aa commit 0235719
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build-examples-gh-pages-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "ESP-IDF build examples to github pages (push)"

on:
push:
branches:
- master

jobs:

build:
strategy:
matrix:
idf_ver: ["v5.1.1"]
runs-on: ubuntu-latest
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Action for building binaries and config.toml
uses: espressif/idf-examples-launchpad-ci-action@v1.0
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

0 comments on commit 0235719

Please sign in to comment.