Skip to content

This Action will Build your Nuxt Project, Generate Static files and deploy it to Github Pages. It is based on xRealNeon/VuePagesAction

License

Notifications You must be signed in to change notification settings

ashkantaravati/NuxtToGithubPages

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Build Nuxt and deploy it to Github Pages 🚀

This Action will Build your Nuxt Project, Generate Static files and deploy it to Github Pages. It is based on xRealNeon/VuePagesAction

Getting Started 🎉

  1. Create the vue.config.js file
  2. Add this to your vue.config.js (and rename "YourRepoName" to your repo name)
module.exports = {
    publicPath: '/YourRepoName/'
}
  1. Create a Github Actions Workflow file and add this to it (and replace "YourGithubName" and "YourRepoName" with the names)
name: Build Vue
on: [push]
jobs:
  build_vue:
    runs-on: ubuntu-latest
    name: Build Vue
    steps:
    - uses: actions/checkout@v2
    - id: Build-Vue
      uses: ashkantaravati/[email protected]
      with:
        username: 'YourGithubName'
        reponame: 'YourRepoName'
        token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
  1. Go to Settings -> Scroll down to GitHub Pages -> Select gh-pages as branch and / as directory

Options 🔧

Name Description Default Required
username Your username -
reponame Your repository name -
token Please leave this line unchanged -
gitemail Git commit email [email protected]
gitname Git commit name CI
gitmsg Git commit message deploy
cname Custom domain -

About

This Action will Build your Nuxt Project, Generate Static files and deploy it to Github Pages. It is based on xRealNeon/VuePagesAction

Resources

License

Stars

Watchers

Forks

Packages

No packages published