Switch to branch-less GitHub pages workflow

This commit is contained in:
Jonas Platte 2023-07-12 15:05:58 +02:00
parent 20d38e1622
commit 4be3a062ae
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -237,11 +237,12 @@ jobs:
name: docs name: docs
path: docs.tar.zstd 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' 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: with:
folder: target/doc path: target/doc
repository-name: ruma/docs.ruma.io
branch: main - name: Deploy to GitHub Pages
ssh-key: ${{ secrets.DOCS_DEPLOY_KEY }} if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/deploy-pages@v2