Replies: 2 comments 1 reply
-
I have same question |
Beta Was this translation helpful? Give feedback.
-
@willeppy According to action source code, you cannot change Of course, you can alter this value, adding additional step to deploy job: ...
environment:
name: github-pages
url: ${{ steps.change-page-url.outputs.new_page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy docs to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
- name: Override page_url
id: change-page-url
run: echo "new_page_url=${{ steps.deployment.outputs.page_url }}notebook/" >> $GITHUB_OUTPUT
... But this option will only affect (change) URL for job output, for example: All deploy will be done for your repository Pages URL ( For quick response (new version), I think you should create an issue (with feature request) in action's repo: |
Beta Was this translation helpful? Give feedback.
-
I am building a site for my repo using a github actions workflow. To deploy the website, I run the below action. How can I change the url where this site is deployed?
Specifically, I would like to add a route to the end so that instead of deploying to
example.com/project
it deploys toexample.com/project/notebook
. It seems to be set by${{steps.deployment.outputs.page_url}}
. I tried adding notebook to the end of this like${{steps.deployment.outputs.page_url}}notebook
with no luck.Here is my deploy action that runs after build in the yaml:
Beta Was this translation helpful? Give feedback.
All reactions