Skip to content

Commit

Permalink
add url path workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Mar 8, 2024
1 parent 4bcd5cf commit b2102c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,16 @@ jobs:
# Deploy to the github-pages environment:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{ steps.change-page-url.outputs.new_page_url }}

# Specify runner + deployment step:
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# Work around the fact that the path cannot be specified with deploy-pages
# https://github.com/orgs/community/discussions/37267#discussioncomment-4012060
- name: Override page_url
id: change-page-url
run: echo "new_page_url=${{ steps.deployment.outputs.page_url }}esp-hal/" >> $GITHUB_OUTPUT

0 comments on commit b2102c4

Please sign in to comment.