* 更新线阵相机管理服务ds_manage_serviceV1.0.0.3 #794
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: | |
- ds_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 | |
packing: | |
name: 线阵相机管理服务打包 | |
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/DalsaStitching | |
ref: ds_manage_service | |
path: code | |
token: ${{ secrets.GH_PAT }} # `GH_PAT` is a secret that contains your PAT | |
- name: 编译打包 | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: jadehh/python:3.8.16-ubuntu18.04 | |
options: -v ${{ github.workspace }}/code:/code | |
run: | | |
cd /code | |
pip install -r requirements.txt | |
python packing_app.py --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 }} # 给最高的权限 | |