Skip to content

Commit

Permalink
ci: Use built docs in Deploy job, use single file
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Oct 14, 2024
1 parent 6b258d8 commit 5bafdac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ jobs:
name: generated-docs
path: docs/target/generated-docs/*
retention-days: 7

deploy:
needs: ci
if: github.repository_owner == 'modcluster' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Get generated-docs
uses: actions/download-artifact@v4
with:
name: generated-docs
path: generated-docs/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.6.8
with:
branch: gh-pages
folder: generated-docs/
git-config-name: mod_cluster documentation bot
git-config-email: docs-bot@modcluster.io

27 changes: 0 additions & 27 deletions .github/workflows/deploy.yml

This file was deleted.

0 comments on commit 5bafdac

Please sign in to comment.