Initial commit

This commit is contained in:
2020-09-13 05:26:44 +00:00
parent dd8ee450a2
commit 05f254a47e
6 changed files with 194 additions and 0 deletions

32
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Build & Publish
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Update Version
id: semver
uses: RightBrain-Networks/semver-action@1.0.0
with:
mode: get
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: build
run: |
python setup.py sdist bdist_wheel
- name: PyPi Publish
uses: pypa/gh-action-pypi-publish@v1.0.0a0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

28
.github/workflows/version.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Version & Release
on:
push:
branches:
- master
jobs:
CheckVersion:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run Auto-Semver
id: semver
uses: RightBrain-Networks/semver-action@1.0.0
- name: Create Release
id: create_release
uses: actions/create-release@v1
if: steps['semver']['outputs']['RETURN_STATUS'] == '0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
release_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
body: Release Version ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
draft: false
prerelease: false