Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gh pages deployment #33

Merged
merged 5 commits into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,24 @@ jobs:
run: |
cd hacspec-scrambledb
cargo doc --no-deps
echo "<meta http-equiv=\"refresh\" content=\"0; url=scrambledb\">" > target/doc/index.html
cp -r target/doc docs
cat > target/doc/index.html <<EOF
<!doctype html>
<html>
<head><meta http-equiv="refresh" content="0; url='scrambledb/index.html'"></head>
</html>
EOF
mv target/doc ../docs

- name: Fix permissions
run: |
chmod -c -R +rX "docs/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
jschneider-bensch marked this conversation as resolved.
Show resolved Hide resolved

- name: Upload Documentation Artifact
uses: actions/upload-pages-artifact@v2
with:
path: "hacspec-scrambledb/docs"
path: "docs"

- name: Deploy Documentation to GitHub Pages
id: deployment
Expand Down