Git Product home page Git Product logo

qqcibuild's Introduction

qq小程序ci构建工具

qq小程序开发者可以在小程序项目中接入ci,并使用qq小程序ci构建镜像,在git操作时触发构建操作上传版本到qq小程序管理端。支持设置体验版、设置小程序默认打开的页面路径

Docker Image

  • qqminiapp/build:latest

示例

Orange-ci

master:
  push:
    - stages:
      - name: qqminiapp cibuild
        image: qqminiapp/build:latest
        settings:
          version: 1.0.0
          desc: qq小程序
          appToken: xxx
          buildUser: $ORANGE_BRANCH
          experience: true
          filePath: qrcode.png
          #firstPage: pages/logs/logs?id=111
      
      # 推送二维码到企业微信
      - name: send file
        type: wework:file
        options:
          filePath: qrcode.png

Github-action

name: CI

on:
  push:
    branches:
    - master

jobs:
  build-qq-ci:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout 
      uses: actions/checkout@master
    - name: Build 
      uses: docker://qqminiapp/build:latest
      env: 
        PLUGIN_VERSION: 1.0.0
        PLUGIN_DESC: CI自动构建上传
        PLUGIN_APPTOKEN: ${{ secrets.APPTOKEN }}
        PLUGIN_BUILDUSER: ${{ github.actor }}
        PLUGIN_EXPERIENCE: true
        #PLUGIN_FIRSTPAGE: pages/logs/logs?id=111

Drone CI

kind: pipeline
name: default

steps:
  - name: CI Auto Build
    image: qqminiapp/build:latest
    settings:
      version: 1.0.0
      desc: CI自动构建上传
      appToken: xxx
      buildUser: ${DRONE_REPO_OWNER}
      experience: true
      #firstPage: pages/logs/logs?id=111
    when:
      event: push 
      branch: master

输入

  • version:小程序版本号
  • desc:小程序版本描述
  • appTokenqq小程序管理端获取的apptoken
  • buildUser:小程序开发版的发布者(小程序管理端->开发管理->开发版本的发布者)。
  • experience 是否设置为体验版 true:设置当前版本为体验版,不填或false则只上传开发版,不会设置为体验版
  • firstPage:小程序默认打开的页面路径,如 pages/logs/logs?id=111
  • filePath:默认值 qrcode.png,ci构建时生成的二维码相对路径。如果experience为true则是体验版二维码,否则是开发版二维码。

获取appToken

  1. 打开qq小程序管理端https://q.qq.com
  2. 登录
  3. 进入设置页面
  4. 进入开发设置页
  5. 点击生成appToken
  6. 管理员扫码
  7. 得到appToken

qqcibuild's People

Contributors

502647092 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.