Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不会修仙的道士
labelme
提交
96dabeb8
L
labelme
项目概览
不会修仙的道士
/
labelme
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
labelme
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
96dabeb8
编写于
7月 15, 2020
作者:
K
Kentaro Wada
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add release.yml
上级
83f89279
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
117 addition
and
0 deletion
+117
-0
.github/workflows/release.yml
.github/workflows/release.yml
+117
-0
未找到文件。
.github/workflows/release.yml
0 → 100644
浏览文件 @
96dabeb8
name
:
release
on
:
push
:
tags
:
-
'
v*'
jobs
:
release
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Create release
id
:
create_release
uses
:
actions/create-release@v1
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
tag_name
:
${{ github.ref }}
release_name
:
${{ github.ref }}
draft
:
false
prerelease
:
false
-
name
:
Create release url file
run
:
echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
-
name
:
Save release url file for publish
uses
:
actions/upload-artifact@v1
with
:
name
:
release_url
path
:
release_url.txt
publish
:
needs
:
[
release
]
strategy
:
matrix
:
os
:
[
macos-latest
,
ubuntu-latest
,
windows-latest
]
runs-on
:
${{ matrix.os }}
steps
:
-
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
uses
:
goanpeca/setup-miniconda@v1
with
:
auto-update-conda
:
true
python-version
:
'
3.7'
-
name
:
Install main
shell
:
bash -l {0}
run
:
|
pip install .
-
name
:
Run pyinstaller
shell
:
bash -l {0}
run
:
|
pip install 'pyinstaller!=3.4'
pip install 'setuptools<45.0.0'
pyinstaller labelme.spec
-
name
:
Load release url file from release job
uses
:
actions/download-artifact@v1
with
:
name
:
release_url
-
name
:
Get release file name & upload url
id
:
get_release_info
run
:
|
echo "::set-output name=upload_url::$(cat release_url/release_url.txt)"
-
name
:
Upload release executable on macOS & Linux
id
:
upload_release_executable_macos_linux
uses
:
actions/upload-release-asset@v1
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
upload_url
:
${{ steps.get_release_info.outputs.upload_url }}
asset_path
:
./dist/labelme
asset_name
:
labelme-${{ runner.os }}
asset_content_type
:
application/octet-stream
if
:
runner.os != 'Windows'
-
name
:
Upload release executable on Windows
id
:
upload_release_executable_windows
uses
:
actions/upload-release-asset@v1
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
upload_url
:
${{ steps.get_release_info.outputs.upload_url }}
asset_path
:
./dist/labelme.exe
asset_name
:
Labelme.exe
asset_content_type
:
application/octet-stream
if
:
runner.os == 'Windows'
-
name
:
Create dmg for macOS
run
:
|
npm install -g create-dmg
cd dist
create-dmg Labelme.app || test -f Labelme\ 0.0.0.dmg
mv Labelme\ 0.0.0.dmg Labelme.dmg
if
:
runner.os == 'macOS'
-
name
:
Upload release app on macOS
id
:
upload_release_app_macos
uses
:
actions/upload-release-asset@v1
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
upload_url
:
${{ steps.get_release_info.outputs.upload_url }}
asset_path
:
./dist/Labelme.dmg
asset_name
:
Labelme.dmg
asset_content_type
:
application/octet-stream
if
:
runner.os == 'macOS'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录