Deploy Hexo Project Using GitHub Actions
Hexo & GitHub Actions - “No artifacts named ‘github-pages’” Error
After migrating to Hexo, I tried setting up GitHub Pages deployment via GitHub Actions, following the official guide GitHub Pages. Unfortunately, my workflow consistently failed with the error:
No artifacts named "github-pages" were found for this workflow run.
Solution:
My guess is there could be a potential incompatibility or version mismatch between the actions/upload-pages-artifact
v3 and actions/deploy-pages
v4.
To address this, just to explicitly ensure the Pages configuration was up-to-date before the deployment step.
1 | - name: Configure GitHub Pages |
My Complete GitHub Actions Workflow:
Here’s the GitHub Actions workflow file (.github/workflows/your-workflow-name.yml
) that now works:
1 | name: GH Pages Deploy |
Hopefully, this helps anyone else struggling with the same GitHub Actions deployment error for their static sites!
Deploy Hexo Project Using GitHub Actions
https://xiaoque.github.io/2025/05/28/Deploy-Hexo-project-using-GitHub-Actions/