Giter VIP home page Giter VIP logo

youwallet.github.io's People

Contributors

zhaobinglong avatar fushang318 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

ben7th avatar  avatar James Cloos avatar  avatar  avatar  avatar  avatar

youwallet.github.io's Issues

基于Action自动编译部署官网到github.io

参考:http://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html

监听指定的分支提交

on:
  push:
    branches: [ develop ]

执行多个命令

注意要在run后面加|,表示后面的命令在同一个上下文环境中执行

    - run: |
        npm install 
        npm run build --if-present

部署命令

引用peaceiris/actions-gh-pages@v3,提前添加deploy_key,当监听到develop分支的代码提交后,如果我们想把编译后的文件部署到master分支上,则配置publish_branch为master,publish_dir用来指定想要部署的文件夹

    - name: Deploy
      uses: peaceiris/actions-gh-pages@v3
      with:
        deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
        publish_branch: master
        publish_dir: ./.vuepress/dist
        allow_empty_commit: true

Action市场寻找一个action

https://github.com/ + action被引用的名字

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.