diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9c35fc27..73cf1e16 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,9 +1,8 @@ -name: Test Docs +name: docs on: push: - branches: - - main + branches: ["automate-pages-workflow"] workflow_dispatch: permissions: @@ -40,7 +39,6 @@ jobs: mkdir -p docs/.vuepress cat > docs/.vuepress/config.js << 'EOF' import { defaultTheme } from 'vuepress' - export default { title: 'TT-Torch Documentation', description: 'Documentation for TT-Torch', @@ -61,3 +59,14 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: docs/.vuepress/dist + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4