Switch to branch-less GitHub pages workflow
This commit is contained in:
parent
20d38e1622
commit
4be3a062ae
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user