wewechat-plus-plus/.workflow/pipeline-build-20220901.yml

77 lines
2.8 KiB
YAML
Raw Normal View History

2022-09-01 21:48:38 +08:00
version: '1.0'
name: pipeline-build-20220901
displayName: pipeline-build
triggers:
2022-09-02 11:49:18 +08:00
trigger: auto
2022-09-01 21:48:38 +08:00
push:
2022-09-02 11:35:42 +08:00
tags:
2022-09-01 21:48:38 +08:00
prefix:
- ''
stages:
- name: stage-82deebcf
displayName: 构建
strategy: naturally
trigger: auto
executor: []
steps:
- step: build@nodejs
name: build_nodejs
displayName: Nodejs 构建
nodeVersion: 16.14.2
commands:
2022-09-01 22:41:01 +08:00
- '# 设置NPM源提升安装速度'
2022-09-01 21:48:38 +08:00
- npm config set registry https://registry.npmmirror.com
- npm i yarn -g
2022-09-01 22:41:01 +08:00
- yarn config set registry "https://registry.npmmirror.com"
- yarn config set electron_builder_binaries_mirror "https://npmmirror.com/mirrors/electron-builder-binaries/"
2022-09-01 23:11:05 +08:00
- yarn config set electron_mirror "https://code.gitlink.org.cn/shenmo7192/electron-releases/raw/branch/master/"
2022-09-02 00:18:27 +08:00
- mkdir -p /root/.cache/electron-builder/app-builder/
2022-09-02 01:30:13 +08:00
- mkdir ../release
2022-09-02 00:18:27 +08:00
- ELECTRON_BUILDER_BINARIES_MIRROR =https://registry.npmmirror.com/binary.html?path=electron-builder-binaries/
2022-09-02 00:58:48 +08:00
- '###'
2022-09-02 00:37:53 +08:00
- mkdir -p /root/.cache/electron-builder/app-builder/app-builder-v0.6.1-x64
2022-09-02 00:58:48 +08:00
- WORK_DIR=`pwd`
- cd /root/.cache/electron-builder/app-builder/app-builder-v0.6.1-x64
2022-09-02 00:37:53 +08:00
- 'wget https://code.gitlink.org.cn/shenmo7192/electron-releases/raw/branch/master/app-builder-v0.6.1-linux-x64.7z '
2022-09-02 00:48:52 +08:00
- '7z x app-builder-v0.6.1-linux-x64.7z '
2022-09-02 00:58:48 +08:00
- cd $WORK_DIR
- '###'
- mkdir -p /root/.cache/electron-builder/appimage/appimage-9.0.5
- cd /root/.cache/electron-builder/appimage/appimage-9.0.5
- wget https://code.gitlink.org.cn/shenmo7192/electron-releases/raw/branch/master/appimage-9.0.5.7z
- 7z x appimage-9.0.5.7z
- cd $WORK_DIR
2022-09-02 01:04:13 +08:00
- '###'
- 'mkdir -p /root/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64 '
- 'cd /root/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64 '
- wget https://code.gitlink.org.cn/shenmo7192/electron-releases/raw/branch/master/fpm-1.9.3-2.3.1-linux-x86_64.7z
- 7z x fpm-1.9.3-2.3.1-linux-x86_64.7z
- cd $WORK_DIR
- '###'
2022-09-01 22:41:01 +08:00
- yarn
- yarn package-linux
2022-09-02 01:30:13 +08:00
- mv ../release ./release
- rm -r ./release/linux-unpacked
2022-09-01 21:48:38 +08:00
artifacts:
- name: BUILD_ARTIFACT
path:
2022-09-02 01:18:47 +08:00
- ./release
2022-09-01 22:24:17 +08:00
caches: []
2022-09-01 21:48:38 +08:00
notify: []
strategy:
retry: '0'
- name: stage-cd5d9e5b
displayName: 上传制品
strategy: naturally
trigger: auto
executor: []
steps:
- step: publish@general_artifacts
name: publish_general_artifacts
displayName: 上传制品
dependArtifact: BUILD_ARTIFACT
artifactName: output
notify: []
strategy:
retry: '0'