Build & Deploy Docs #597
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: Build & Deploy Site | |
| # Builds the full site (React landing + MkDocs docs + blog, see build-docs.yml) and | |
| # cross-repo deploys it to the GitHub Pages repo serving dstack.ai. | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-docs: | |
| uses: ./.github/workflows/build-docs.yml | |
| secrets: inherit | |
| deploy-docs: | |
| needs: [build-docs] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: site | |
| path: site | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4.6.4 | |
| with: | |
| repository-name: dstackai/dstackai.github.io | |
| branch: gh-pages | |
| token: ${{ secrets.GH_TOKEN }} | |
| folder: site |