Skip to content

Commit

Permalink
changeing the workflow files again
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Dec 23, 2024
1 parent e0b7886 commit 193b15a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build_firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ jobs:
if [ -d ./webapp ]; then
rm -rf ./webapp
mkdir ./webapp
fi
artifact_url=$(curl -s -H "Authorization: token ${{ secrets.artifact_download_token }}" \
"https://api.github.com/repos/pljakobs/esp_rgb_webapp2/actions/runs/${{ env.latest_run_id }}/artifacts" | \
jq -r '.artifacts[] | select(.name=="spa-files") | .archive_download_url')
fioutlect(.name=="spa-files") | .archive_download_url')
curl -L -o spa-files.zip -H "Authorization: token ${{ secrets.artifact_download_token }}" "$artifact_url"
unzip spa-files.zip -d ./webapp
Expand Down Expand Up @@ -89,9 +86,9 @@ jobs:
id: set_firmware_path
run: |
if [ "${{ matrix.soc }}" = "esp8266" ] && [ "${{ matrix.release }}" = "0" ]; then
echo "path=out/Esp8266/debug/build/app_0.out" >> $GITHUB_OUTPUT
echo "path=out/Esp8266/debug/firmware/rom0.bin" >> $GITHUB_OUTPUT
elif [ "${{ matrix.soc }}" = "esp8266" ] && [ "${{ matrix.release }}" = "1" ]; then
echo "path=out/Esp8266/release/build/app_0.out" >> $GITHUB_OUTPUT
echo "path=out/Esp8266/release/firmware/rom0.bin" >> $GITHUB_OUTPUT
elif [ "${{ matrix.soc }}" = "esp32" ] && [ "${{ matrix.release }}" = "0" ]; then
echo "path=out/Esp32/esp32/debug/firmware/app.bin" >> $GITHUB_OUTPUT
elif [ "${{ matrix.soc }}" = "esp32" ] && [ "${{ matrix.release }}" = "1" ]; then
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Publish Firmware

on:
workflow_run:
workflows:
- build_application # Must match the name in build_firmware.yml
types:
- completed
workflows: [ "build_application" ] # Must match the name in build_firmware.yml
types: [ "completed" ]

jobs:
get-version:
Expand Down

0 comments on commit 193b15a

Please sign in to comment.