Giter Club home page Giter Club logo

vue2-deploy-gh-pages's Introduction

vue2-gh-pages-deploy

  1. 项目部署在网站非根目录下,需要修改 vue.config.js

    module.exports = {
      publicPath:
        process.env.NODE_ENV === "production" ? "/vue2-deploy-gh-pages/" : "/",
    };
  2. 新建 deploy-to-gh-pages.yml

  3. 创建 Personal AccessToken

    image-20220714224725431

    image-20220714224953013

  4. 在仓库 vue2-deploy-gh-pages 中添加secret

    image-20220714225031288

    image-20220714225107319

  5. 观察工作流。打包后上传到gh-pages分支,会触发GitHub Pages自动化部署。

    image-20220714225414953

    image-20220714225520310

  6. 访问网页:https://zlx01.github.io/vue2-deploy-gh-pages/


Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

vue2-deploy-gh-pages's People

Contributors

zlx01 avatar

Watchers

 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.