DEV Community


Discussion on: How to deploy to Github Pages using Github Actions

szabgab profile image
Gabor Szabo

Nice. In this example you use the matrix, but I don't see you defined it. I wonder if this is a copy-paste error, or if the matrix has some default values.

Also, where is your site? Can we have a link?

vanwildemeerschbrent profile image
Brent Vanwildemeersch Author

Hi Gabor,

Thanks for the remark, it was indeed not added to the workflow.yml. I have updated the article with the suggested changes.

I've tried it in my workflow without the specified matrix containing the NodeJS version, and it also works. According to the documentation (, if you don't define a specific NodeJS version, GitHub uses the environment's default Node.js version.
So both ways will work, but it's better to define the strategy in the workflow document.

You can find my site at