web_deploy.yml 1020 B

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