Skip to content

Commit

Permalink
ci: add release.yaml and update pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
dejavu6 committed Aug 30, 2022
1 parent cb35971 commit 996747d
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
tags:
- v*
# Triggers the workflow when a release is created
release:
types: [ created ]
# release:
# types: [ created ]

# 当发布时,触发action
#release:
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Release

on:
push:
tags:
- v*

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

steps:
# 此步骤使用 GitHub 的 https://github.com/actions/checkout
- uses: actions/checkout@v3

# 设置python环境
# 此步骤使用 GitHub 的 https://github.com/actions/setup-python
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Build Assets
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
ls -lh
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
# Optionally strip `v` prefix
strip_v: true

# - name: conventional changelog action
# id: changelog
# # https://github.com/TriPSs/conventional-changelog-action
# uses: TriPSs/conventional-changelog-action@latest
# with:
# # you can also create separate token to trace action
# github-token: "${{ secrets.GITHUB_TOKEN }}"

- 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 }}
# body: ${{steps.changelog.outputs.clean_changelog}}
draft: false
prerelease: false

- name: Upload assets
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/${{ github.event.repository.name }}-${{steps.tag.outputs.tag}}-py3-none-any.whl
asset_name: ${{ github.event.repository.name }}-${{steps.tag.outputs.tag}}-py3-none-any.whl
asset_content_type: application/zip
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
![](https://img.shields.io/badge/language-python-blue.svg)
[![Forks](https://img.shields.io/github/forks/iflytek/iflearner)](https://img.shields.io/github/forks/iflytek/iflearner)
[![Stars](https://img.shields.io/github/stars/iflytek/iflearner)](https://img.shields.io/github/stars/iflytek/iflearner)
[![Contributors](https://img.shields.io/github/contributors/iflytek/iflearner)](https://github.com/iflytek/iflearner/graphs/contributors)
[![Docs](https://github.com/iflytek/iflearner/actions/workflows/deploy_doc.yaml/badge.svg)](https://github.com/iflytek/iflearner/actions/workflows/deploy_doc.yaml)
[![Pypi](https://github.com/iflytek/iflearner/actions/workflows/publish_pypi.yaml/badge.svg)](https://github.com/iflytek/iflearner/actions/workflows/publish_pypi.yaml)
[![Contributors](https://img.shields.io/github/contributors/iflytek/iflearner)](https://github.com/iflytek/iflearner/graphs/contributors)
[![License: Apache2.0](https://img.shields.io/github/license/iflytek/iflearner)](https://github.com/iflytek/iflearner/blob/main/LICENSE)

[DOCS](https://iflytek.github.io/iflearner/) | [中文](https://iflytek.github.io/iflearner/zh/)
Expand All @@ -16,7 +16,7 @@ privacy. The algorithm layer supports various deep learning network models, and
such as Tensorflow, Mxnet, and Pytorch.

## Architecture
![iFLeaner Arch](./doc/docs/images/iFLearner框架设计.jpg)
![iFLeaner Arch](https://github.com/iflytek/iflearner/raw/main/doc/docs/images/iFLearner%E6%A1%86%E6%9E%B6%E8%AE%BE%E8%AE%A1.jpg)

The design of iFLearner is based on a few guiding principles:

Expand Down Expand Up @@ -50,5 +50,5 @@ The design of iFLearner is based on a few guiding principles:
[iFLeaner FAQ](https://iflytek.github.io/iflearner/faq/faq/)

## License
[Apache License 2.0](LICENSE)
[Apache License 2.0](https://github.com/iflytek/iflearner/blob/main/LICENSE)

8 changes: 4 additions & 4 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
![](https://img.shields.io/badge/language-python-blue.svg)
[![Forks](https://img.shields.io/github/forks/iflytek/iflearner)](https://img.shields.io/github/forks/iflytek/iflearner)
[![Stars](https://img.shields.io/github/stars/iflytek/iflearner)](https://img.shields.io/github/stars/iflytek/iflearner)
[![Contributors](https://img.shields.io/github/contributors/iflytek/iflearner)](https://github.com/iflytek/iflearner/graphs/contributors)
[![Docs](https://github.com/iflytek/iflearner/actions/workflows/deploy_doc.yaml/badge.svg)](https://github.com/iflytek/iflearner/actions/workflows/deploy_doc.yaml)
[![Pypi](https://github.com/iflytek/iflearner/actions/workflows/publish_pypi.yaml/badge.svg)](https://github.com/iflytek/iflearner/actions/workflows/publish_pypi.yaml)
[![Contributors](https://img.shields.io/github/contributors/iflytek/iflearner)](https://github.com/iflytek/iflearner/graphs/contributors)
[![License: Apache2.0](https://img.shields.io/github/license/iflytek/iflearner)](https://github.com/iflytek/iflearner/blob/main/LICENSE)

[DOCS](https://iflytek.github.io/iflearner/zh/) | [英文](https://iflytek.github.io/iflearner/)

iFLearner是一个强大且轻量的联邦学习框架,提供了一种基于数据隐私安全保护的安全计算框架
iFLearner是一个强大且轻量的联邦学习框架,提供了一种基于数据隐私安全保护的计算框架
主要针对深度学习场景下的联邦建模。其安全底层支持同态加密、秘密共享、差分隐私等多种加密技术,
算法层支持各类深度学习网络模型,并且同时支持Tensorflow、Mxnet、Pytorch等主流框架。

## 架构
![iFLeaner Arch](./doc/docs/images/iFLearner框架设计.jpg)
![iFLeaner Arch](https://github.com/iflytek/iflearner/raw/main/doc/docs/images/iFLearner%E6%A1%86%E6%9E%B6%E8%AE%BE%E8%AE%A1.jpg)

iFLearner主要基于以下原则进行设计:
* **事件驱动机制**: 使用事件驱动的编程范式来构建联邦学习,即将联邦学习看成是参与方之间收发消息的过程,
Expand Down Expand Up @@ -44,4 +44,4 @@ iFLearner主要基于以下原则进行设计:
[iFLeaner FAQ](https://iflytek.github.io/zh/iflearner/faq/faq/)

## License
[Apache License 2.0](LICENSE)
[Apache License 2.0](https://github.com/iflytek/iflearner/blob/main/LICENSE)
8 changes: 4 additions & 4 deletions doc/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ site_name: "Iflearner Documents"
# 网站描述
site_description: "Document for Iflearner"
# 作者信息
site_author: "Iflytek Turing Group"
site_author: "iFLYTEK Turing Group"
# 网站(文档中心)的链接
#site_url: ***
site_url: "https://iflytek.github.io/iflearner/"
# 版权信息
copyright: Copyright © 2022 <a Powered by iFLYTEK 版权所有</a>

# GitHub库的名称
repo_name: "iflearner"
# GitHub库的链接
repo_url: "https://github.com/iflytek/iflearner.git"
repo_url: "https://github.com/iflytek/iflearner"

# 指定包含文档源Markdown文件的目录
docs_dir: docs
Expand Down Expand Up @@ -211,7 +211,7 @@ extra:
property: UA-147297392-7
social:
- icon: fontawesome/brands/github
link: https://github.com/iflytek/iflearner.git
link: https://github.com/iflytek/iflearner
alternate:
- name: English
lang: en
Expand Down

0 comments on commit 996747d

Please sign in to comment.