How to use actions/deploy-pages@v1 to upload to a directory in the auto generated static GH Page? #78058
Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
-
Thank you for the response. I updated the yaml config with the suggestion, however the pages-deploy-branch is not recognized. [cron] I did see some 3rd party packages that offer the ability to specify deployment branches and locations however I'm limited to only using the official GH Pages implementation. Snippet of modifications made: |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi have several GH Actions that do the following:
install playwright, run tests and upload an artifact.
Then I perform steps to upload the artifact and publish to pages:
name: Setup Pages
uses: actions/configure-pages@v2
name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: playwright-report/
name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
The artifact deploys to the auto generated url provided by GH Pages: https://username.pages.github.io
The problem I'm running into is that I want to publish all of my GH Action jobs to GH Pages however the GH Action jobs all overwrite each other when published to pages. Is there a way to deploy the pages for each GH Action to a folder on the static page so that they aren't all publishing to the base URL and getting overwritten? for example:
GHAction-Job1 publishes to https://username.pages.github.io/Job1
GHAction-Job2 publishes to https://username.pages.github.io/Job2
etc...
Beta Was this translation helpful? Give feedback.
All reactions