Code Monkey home page Code Monkey logo

vuebuildtobranchaction's Introduction

Build Vue and deploy it to a branch ๐Ÿš€

This Action will Build your Vue Project and deploy it to a specified branch

Getting Started ๐ŸŽ‰

  1. If you are using GitHub pages (gh-pages branch), create the vue.config.js file and 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: LizAinslie/[email protected]
      with:
        username: 'YourGithubName'
        reponame: 'YourRepoName'
        token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
        branch: 'YourBranchName' # defaults to 'gh-pages' but can be changed
  1. If you want to use GitHub Pages, go to Settings -> Scroll down to GitHub Pages -> Select your branch name 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 โŒ
gitbranch Custom branch gh-pages โŒ
useyarn Use yarn to build false โŒ

vuebuildtobranchaction's People

Contributors

lizainslie avatar numselli avatar xrealneon avatar zosky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.