Merge pull request #106 from zevorn/website/hide-flash-log #63
This file contains hidden or 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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'website/**' | |
| - 'images/**' | |
| - 'docs/**' | |
| - '.github/workflows/deploy-pages.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Copy images and docs to website | |
| run: | | |
| cp -r images/ website/img/ | |
| cp -r docs/ website/docs/ | |
| - name: Download ESP32-C3 devkit firmware (if available) | |
| uses: dawidd6/action-download-artifact@v6 | |
| with: | |
| workflow: build-firmware.yml | |
| name: esp32c3-devkit-firmware | |
| path: website/firmware/esp32c3-devkit/ | |
| if_no_artifact_found: warn | |
| - name: Download ESP32-C3 xiaozhi-xmini firmware (if available) | |
| uses: dawidd6/action-download-artifact@v6 | |
| with: | |
| workflow: build-firmware.yml | |
| name: esp32c3-xiaozhi-xmini-firmware | |
| path: website/firmware/esp32c3-xiaozhi-xmini/ | |
| if_no_artifact_found: warn | |
| - name: Download ESP32-S3 default firmware (if available) | |
| uses: dawidd6/action-download-artifact@v6 | |
| with: | |
| workflow: build-firmware.yml | |
| name: esp32s3-default-firmware | |
| path: website/firmware/esp32s3-default/ | |
| if_no_artifact_found: warn | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: website | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |