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

Display figures on a new github pages site. #49

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- 'main'
AhmedBasem20 marked this conversation as resolved.
Show resolved Hide resolved
- 'analysis/**'

permissions:
contents: read
pages: write
id-token: write

jobs:
algorithms:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,10 +113,15 @@ jobs:
test_duration.csv

analyze:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: merge
steps:
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
Expand Down Expand Up @@ -147,6 +157,20 @@ jobs:
curve_plot.pdf
fitted_curves.pdf

- name: Create Build Directory and Move PDFs
run: mv *.pdf website/

- name: Upload website artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'website'
if: github.ref == 'refs/heads/main'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
if: github.ref == 'refs/heads/main'

compare:
runs-on: ubuntu-latest
needs: merge
Expand Down
36 changes: 36 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algorithm Analysis Figures</title>
<style>
body {
height: 100%;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 2rem;
}
embed {
width: 70vw;
height: 100vh;
}
</style>
</head>
<body>
<h1>Algorithm Analysis Figures</h1>

<embed src="D_limited.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="D.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="Dp_limited.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="Dp.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="f_limited.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="f.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="fitted_curves.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="curve_plot.pdf" type="application/pdf" frameborder="0" scrolling="auto">
<embed src="durations.pdf" type="application/pdf" frameborder="0" scrolling="auto">
</body>
</html>