Skip to content

Commit

Permalink
fix pages permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Nov 23, 2023
1 parent 53a348d commit 7afe45d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4
Expand Down Expand Up @@ -48,12 +48,19 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v3


- name: Fix permissions
run: |
chmod -c -R +rX "./target/doc" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: upload Docs files
uses: actions/upload-pages-artifact@v2
with:
path: ./target/doc

- name: Deploy Docs
# if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2

0 comments on commit 7afe45d

Please sign in to comment.