Skip to content

Commit

Permalink
cp_releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzroe committed Apr 21, 2024
1 parent e183d92 commit b4a845b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cp_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ jobs:
done
- name: Create manifests
env:
GITHUB_REPO: ${{ github.repository }}
run: |
base_url="https://raw.githubusercontent.com/${GITHUB_REPO}/releases"
for dir in *; do
version=$(basename "$dir")
file_path="$dir/XZG_${version}.full.bin"
file_path="${base_url}/${dir}/XZG_${version}.full.bin"
echo -e "{\n \"name\": \"XZG Firmware\",\n \"version\": \"$version\",\n \"builds\": [\n {\n \"chipFamily\": \"ESP32\",\n \"improv\": false,\n \"parts\": [\n {\n \"path\": \"$file_path\",\n \"offset\": 0\n }\n ]\n }\n ]\n}" > "$dir/manifest.json"
done
Expand Down

0 comments on commit b4a845b

Please sign in to comment.