Add vt electric to workflow #4
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: Docs | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| jobs: | |
| publish-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Deno | |
| uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: "2.x" | |
| - name: Check out the code | |
| uses: actions/checkout@v2 | |
| - name: Generate documentation | |
| run: deno task doc | |
| - name: Upload the docs to Val Town Electric | |
| run: | |
| deno run -A https://esm.town/v/wolf/VTDocs/cli/mod.ts | |
| env: | |
| ELECTRIC_ROOT_URL: https://vt-docs.val.run | |
| ELECTRIC_MASTER_BEARER: ${{ secrets.ELECTRIC_MASTER_BEARER }} |