From 4be3a062aec3e14f011d6cc0ed46441988a8e7a2 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 12 Jul 2023 15:05:58 +0200 Subject: [PATCH] Switch to branch-less GitHub pages workflow --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c2371ab..6362e5b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -237,11 +237,12 @@ jobs: name: docs path: docs.tar.zstd - - name: Deploy to docs repo + - name: Upload docs as pages artifact if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: JamesIves/github-pages-deploy-action@4.1.4 + uses: actions/upload-pages-artifact@v1 with: - folder: target/doc - repository-name: ruma/docs.ruma.io - branch: main - ssh-key: ${{ secrets.DOCS_DEPLOY_KEY }} + path: target/doc + + - name: Deploy to GitHub Pages + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + uses: actions/deploy-pages@v2