Workflow for Vue 3 deploy to Pages? #56145
-
Select Topic AreaQuestion BodyI'm looking for a way to deploy a Vue 3 site to Github pages using GitHub Actions. I tried instructions on cli.vuejs.org but neither of the methods there described seem to work. package.json:
vue.config.js:
.travis.yml:
Also can't find an example workflow file for Github Actions for Vue. What should a workflow file for Vue for building and deploying a Vue 3 site to GitHub Pages with GitHub Actions look like? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Does your build produce a static website? If yes, look at the starter workflows for Pages. There isn't one for Vue specifically, but there are some that use other Node-based page generators. You'd just need to change the build part. If you need Node running on the server (in deployment, not CI) you'll indeed need to find somewhere else to host it. |
Beta Was this translation helpful? Give feedback.
Does your build produce a static website? If yes, look at the starter workflows for Pages. There isn't one for Vue specifically, but there are some that use other Node-based page generators. You'd just need to change the build part.
If you need Node running on the server (in deployment, not CI) you'll indeed need to find somewhere else to host it.