Reworked firmware update process and design #850
This file contains hidden or 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
| # This file was auto-generated by the Firebase CLI | |
| # https://github.com/firebase/firebase-tools | |
| name: Deploy to Firebase Hosting | |
| "on": | |
| push: | |
| branches: | |
| - "stable" | |
| tags-ignore: | |
| - "*" | |
| pull_request: | |
| jobs: | |
| build_and_deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install libudev-dev | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
| - run: npm ci && npm run web-build | |
| - name: Deploy to Firebase Hosting Live channel on push | |
| if: ${{ github.event_name == 'push' }} | |
| uses: FirebaseExtended/action-hosting-deploy@v0 | |
| with: | |
| repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
| channelId: live | |
| firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_GRID_EDITOR_WEB }}" | |
| projectId: grid-editor-web | |
| target: grid-editor | |
| - name: Deploy to Firebase Hosting on pull request | |
| if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }} | |
| uses: FirebaseExtended/action-hosting-deploy@v0 | |
| with: | |
| repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
| firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_GRID_EDITOR_WEB }}" | |
| projectId: grid-editor-web | |
| target: grid-editor | |
| expires: 30d |