Skip to content

Commit

Permalink
Final main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
g-goulis committed Sep 24, 2024
1 parent 9391c2a commit de7412f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

permissions:
pages: write # Grant permission to deploy to GitHub Pages
id-token: write # Required for GitHub Pages deployment

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -27,9 +31,7 @@ jobs:
javadoc:
runs-on: ubuntu-latest
needs: test # Ensures the javadoc job runs after tests pass
permissions:
pages: write # Grant permission to deploy to GitHub Pages
id-token: write # Required for GitHub Pages deployment

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -52,7 +54,10 @@ jobs:
exit 1
fi
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1 # GitHub Pages deploy action
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
publish_dir: ./docs # Javadoc output folder
path: './docs'

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4 # GitHub Pages deploy action

0 comments on commit de7412f

Please sign in to comment.