diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index a15ba6a..22da0ce 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -6,6 +6,11 @@ on: - 'main' - 'analysis/**' +permissions: + contents: read + pages: write + id-token: write + jobs: algorithms: runs-on: ubuntu-latest @@ -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: @@ -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 diff --git a/website/index.html b/website/index.html new file mode 100644 index 0000000..e4b5215 --- /dev/null +++ b/website/index.html @@ -0,0 +1,36 @@ + + + + + + Algorithm Analysis Figures + + + +

Algorithm Analysis Figures

+ + + + + + + + + + + +