docs: update skill docs with new directory paths #69
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 | |
| - name: Download release firmware to Pages | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| for tag in $(gh release list --limit 5 --json tagName --jq '.[].tagName'); do | |
| echo "Processing release $tag..." | |
| for asset in $(gh release view "$tag" --json assets --jq '.assets[].name'); do | |
| case "$asset" in | |
| *-firmware.zip) | |
| target="${asset%-firmware.zip}" | |
| dir="website/firmware/$target/$tag" | |
| mkdir -p "$dir" | |
| echo " Downloading $asset -> $dir/" | |
| gh release download "$tag" -p "$asset" -D /tmp | |
| unzip -o "/tmp/$asset" -d "$dir" | |
| rm -f "/tmp/$asset" | |
| ;; | |
| esac | |
| done | |
| done | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: website | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |