代码拉取完成,页面将自动刷新
同步操作将从 阿里云/DDNS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
trigger:
batch: true
branches:
include:
- 'master'
- 'fix*'
- 'feat*'
- 'dev*'
tags:
include:
- "v*"
- "V*"
pr:
autoCancel: true
branches:
include:
- master
jobs:
- job: 'Windows'
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
pyinstaller.version: 'pyinstaller'
maxParallel: 4
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: python -m pip install --upgrade pip
displayName: 'Install dependencies'
- script: pip install $(pyinstaller.version)
name: 'pyinstaller'
- bash: sed -i -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
name: 'replaceBuild'
- script: pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec
name: 'build'
- bash: dist/ddns.exe || test -e "config.json"
name: run
- script: copy .release\\*.bat dist
name: 'CopyRlease'
- bash: envsubst < .release/README.md > dist/README.md
name: ReplaceVersion
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: './dist/'
artifactName: 'ddns-win-$(python.version)'
- job: 'MacOS'
pool:
vmImage: 'macos-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
pyinstaller.version: 'pyinstaller'
maxParallel: 4
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: python -m pip install --upgrade pip
displayName: 'Install dependencies'
- script: pip install $(pyinstaller.version)
name: 'pyinstaller'
- bash: sed -i.temp -e "s/\${BUILD_SOURCEBRANCHNAME}/${BUILD_SOURCEBRANCHNAME}/" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py
name: 'replaceBuild'
- script: pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec
name: 'build'
- script: ./dist/ddns || test -e "config.json"
name: 'test'
- script: cp dist/ddns dist/ddns-osx
name: 'CopyDist'
- script: cp .release/*.sh dist/ && cp .release/*.md dist/
name: 'CopyRlease'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: './dist/'
artifactName: 'ddns-mac-$(python.version)'
# release
# steps:
# - task: GitHubRelease@0
# displayName: 'GitHub release (edit)'
# inputs:
# gitHubConnection: 'github connection'
# repositoryName: NewFuture/DDNS
# action: edit
# tag: '$(Build.SourceBranchName)'
# releaseNotesFile: '$(System.DefaultWorkingDirectory)/DDNS/ddns-win-3.7/README.md'
# assets: |
# $(System.DefaultWorkingDirectory)/DDNS/ddns-win-3.7/*.exe
# $(System.DefaultWorkingDirectory)/DDNS/ddns-win-3.7/*.bat
# $(System.DefaultWorkingDirectory)/DDNS/ddns-mac-3.7/ddns-osx
# $(System.DefaultWorkingDirectory)/DDNS/ddns-mac-3.7/*.sh
# assetUploadMode: replace
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。