Skip to content

Commit

Permalink
Change docs to be in doc/ subdir on site
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Aug 14, 2023
1 parent 9f4fd26 commit f210ea2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ jobs:
with:
command: doc
args: --release --workspace
- name: Prepare staging location
run: mkdir -p _site/doc
- name: Copy generated docs to staging
run: cp -r target/doc/* _site/doc
- name: Copy custom redirect page
run: cp docs/facti_redirect.html target/doc/index.html
run: cp docs/facti_redirect.html _site/doc/index.html
- name: Fix permissions
run: |
chmod -c -R +rX "./target/doc/" | while read line; do
chmod -c -R +rX "_site" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './target/doc'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit f210ea2

Please sign in to comment.