-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a469965
commit 9ba6e79
Showing
1 changed file
with
30 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,44 +81,39 @@ jobs: | |
done | ||
- name: 🧪 Display firmware artifacts | ||
run: ls -lR | ||
- name: Move firmware files to docs | ||
- name: 🗂️ Move firmware files to docs | ||
run: | | ||
mkdir output | ||
cp -R site/* output/ | ||
cp -R firmwares/* output/ | ||
- name: Move manifest files to root and modify paths | ||
run: | | ||
for device in firmwares/*; do | ||
device=$(basename $device) | ||
jq --arg device "$device" \ | ||
'.builds[].ota.path |= $device + "/" + . | (.builds[].parts // [])[].path |= $device + "/" + .' \ | ||
firmwares/$device/manifest.json > output/$device-manifest.json | ||
done | ||
cp -R firmwares/* output/firmware/ | ||
# - name: Move manifest files to root and modify paths | ||
# run: | | ||
# for device in firmwares/*; do | ||
# device=$(basename $device) | ||
# jq --arg device "$device" \ | ||
# '.builds[].ota.path |= $device + "/" + . | (.builds[].parts // [])[].path |= $device + "/" + .' \ | ||
# firmwares/$device/manifest.json > output/$device-manifest.json | ||
# done | ||
- name: 🧪 Display firmware artifacts | ||
run: ls -lR | ||
- name: ⬆️ Upload pages artifacts | ||
uses: actions/[email protected] | ||
with: | ||
path: output | ||
|
||
# deploy: | ||
# name: Deploy | ||
# runs-on: ubuntu-latest | ||
# needs: consolidate | ||
# permissions: | ||
# pages: write | ||
# id-token: write | ||
# # environment: | ||
# # name: github-pages | ||
# # url: ${{ steps.deployment.outputs.page_url }} | ||
# steps: | ||
# - name: ⬇️ Download documentation artifact | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: site | ||
# - name: ⬇️ Download firmware artifacts | ||
# uses: actions/[email protected] | ||
# with: | ||
# name: firmware | ||
# path: firmware | ||
# - name: Display firmware artifacts | ||
# run: ls -lR | ||
# # - name: 🚀 Deploy to Github Pages | ||
# # uses: actions/[email protected] | ||
# # id: deployment | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
needs: consolidate | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: 🏗️ Setup Github Pages | ||
uses: actions/[email protected] | ||
- name: 🚀 Deploy to Github Pages | ||
uses: actions/[email protected] | ||
id: deployment |