* 更新视频拼接管理服务vs_manage_serviceV1.0.2.4 #459
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 视频拼接管理服务发布 | |
on: | |
push: | |
tags: | |
- vs_manage_serviceV* | |
jobs: | |
release: | |
name: 视频拼接管理服务发布 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest" ] #, "macos-latest", "windows-latest" | |
steps: | |
- name: 克隆代码 | |
uses: actions/checkout@v3 | |
- name: 创建发行版本 | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body_path: README.md | |
draft: false | |
prerelease: false | |
amd64_job: | |
name: 视频拼接管理服务打包 | |
container: | |
image: jadehh/python:3.8.16-ubuntu18.04 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ "ubuntu-latest" ] #, "macos-latest", "windows-latest" | |
steps: | |
- name: 下载代码 | |
uses: actions/checkout@v3 | |
with: | |
repository: jadehh/VideoStitching | |
ref: vs_manage_service | |
path: code | |
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT | |
- name: 安装pip环境 | |
run: | | |
pip install -r code/requirements.txt | |
pip uninstall -y numpy | |
- name: 打包编译 | |
run: | | |
cd code | |
python packing_app.py \ | |
--extra_sys_str /usr/local/site-packages,/usr/local/opencv \ | |
--is_exec True | |
- name: 发布 | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | |
"./code/Output/*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} # 给最高的权限 | |