Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

Vue to Github Pages

1.0.0

Vue to Github Pages

activity

Vue to Github Pages

This Action will Build your Vue Project and deploy it to Github Pages

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Vue to Github Pages

uses: xRealNeon/[email protected]

Learn more about this action in xRealNeon/VuePagesAction

Choose a version

Build Vue and deploy it to Github Pages πŸš€

This Action will Build your Vue Project and deploy it to Github Pages

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: ./
      with:
        username: 'YourGithubName'
        reponame: 'YourRepoName'
        token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged

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 - ❌