web_deploy.yml 1.1 KB

1234567891011121314151617181920212223242526
  1. name: Update Web Installer
  2. on:
  3. workflow_call:
  4. secrets:
  5. WEB_INSTALLER:
  6. required: true
  7. workflow_dispatch:
  8. jobs:
  9. update_web_installer:
  10. name: Update Web Installer After Release
  11. runs-on: ubuntu-latest
  12. container:
  13. image: sle118/squeezelite-esp32-idfv43
  14. env:
  15. WEB_INSTALLER: ${{ secrets.WEB_INSTALLER }}
  16. steps:
  17. - uses: actions/checkout@v2
  18. with:
  19. fetch-depth: 0
  20. submodules: true
  21. - name: Update Web Installer Project
  22. run: |
  23. . /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
  24. git config --global --add safe.directory /__w/squeezelite-esp32/squeezelite-esp32
  25. build_tools.py manifest --flash_file "/build/flash_project_args" --outdir "./bin_files" --manif_name "manifest" --max_count 3
  26. build_tools.py pushinstaller --source "./bin_files" --manif_name "manifest" --target "web-installer" --url "https://github.com/sle118/squeezelite-esp32-installer.git" --artifacts "docs/artifacts" --web_installer_branch "main" --token "${{env.WEB_INSTALLER}}"