Update API #32262
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: Update API | |
| on: | |
| schedule: | |
| - cron: 0 * * * * | |
| permissions: | |
| contents: write | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dart-lang/setup-dart@v1.4 | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Build | |
| run: mkdir build && dart run >> build/api.json | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4.8.0 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: build |