Skip to content

Commit

Permalink
Deploy using artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBasem20 committed Mar 4, 2024
1 parent 3d982d9 commit c7946c4
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- 'main'
- '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@v3
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
Expand Down Expand Up @@ -149,11 +159,15 @@ jobs:
- name: Create Build Directory and Move PDFs
run: mv *.pdf website/
- name: Deploy 🚀
uses: JamesIves/[email protected]

- name: Upload website artifact
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages
folder: website
path: 'website'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

compare:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c7946c4

Please sign in to comment.