Problem with action to build on github-pages #60655
Replies: 2 comments 1 reply
-
The following answer was generated with AI, hope it helps: The error message you provided suggests that the actions/deploy-pages@v2 action you're using in your workflow is no longer supported. This could be due to a deprecated or outdated version of the action. To resolve this issue, you can try updating the actions/deploy-pages action to a newer version. You can either specify the latest version or use a specific release version that is compatible with your workflow. Here's an updated version of your workflow with the recommended changes: `name: GITHUB PAGES DEPLOY on: permissions: concurrency: jobs:
` In this updated version, I have replaced the deprecated actions and used actions/checkout@v2, actions/setup-node@v2, peaceiris/actions-gh-pages@v3, and actions/upload-artifact@v2 instead. Make sure to replace ${{ secrets.ACTIONS_DEPLOY_KEY }} with the appropriate secret or key required for deploying to GitHub Pages. Please note that this is a general example, and you may need to make further adjustments based on your specific repository and project setup. Try updating your workflow with these changes, and it should resolve the error you're facing. |
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
I have a repository which I used
webpack
+html
+javascript
to make my website static, I had an old action to make the build in github-pages through this wokflow.However, now it is giving the following error:
What I'm trying to do is just, when opening a PR, it will run some validation workflows, if everything is right it will run this workflow to do the automated build for github-pages.
CODE
Beta Was this translation helpful? Give feedback.
All reactions