feat: add ChromeOS and Android format selection radio buttons #92
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
| name: Actions | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: mkdir -p out | |
| - run: cp src/index.html out/ | |
| - run: cp -r src/audio-tuning src/mic-testing src/volume-tuning src/pwa-audio-recorder src/screen-capture-test out/ | |
| - run: npm ci && npm run build | |
| working-directory: src/ds-playground | |
| - run: cp -r src/ds-playground/dist out/ds-playground | |
| - name: Build AECDump Viewer | |
| run: yarn install --frozen-lockfile --registry https://registry.npmjs.org && yarn run build | |
| working-directory: src/aecdump-viewer | |
| - name: Copy AECDump Viewer to out | |
| run: cp -r src/aecdump-viewer/dist out/aecdump-viewer | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: out | |
| path: out/ | |
| deploy: | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| needs: [build] | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4.1.7 | |
| with: | |
| name: out | |
| path: out/ | |
| - run: | | |
| cd out/ | |
| git init -b gh-pages | |
| git config user.name chromeos-audio+bot | |
| git config user.email chromeos-audio+bot@google.com | |
| git add -A | |
| git commit -m 'build ${{ github.sha }}' | |
| git remote add pages https://x-access-token:${{ github.token }}@github.com/${{ github.repository }} | |
| git push pages gh-pages --force |