Skip to content

Commit

Permalink
Enhance GitHub Actions workflow for documentation deployment
Browse files Browse the repository at this point in the history
- Added permissions for GitHub Pages and ID token in the deployment workflow.
- Specified environment for deployment with GitHub Pages URL.
- Updated deployment steps to use actions/upload-pages-artifact for artifact upload.
- Changed deployment action to actions/deploy-pages for improved deployment process.
  • Loading branch information
aliirz committed Dec 2, 2024
1 parent 9d0c98e commit e4143cf
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3

Expand All @@ -26,9 +32,11 @@ jobs:
- name: Create .nojekyll file
run: touch docs/.nojekyll

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
folder: docs
branch: gh-pages
clean: true
path: docs

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

0 comments on commit e4143cf

Please sign in to comment.