-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
743f288
commit 74aabde
Showing
4 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ on: | |
release: | ||
types: [published] | ||
|
||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
PACKAGE_NAME: meiga | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -14,13 +19,18 @@ jobs: | |
with: | ||
python-version: '3.x' | ||
- name: Set RELEASE_VERSION | ||
run: | | ||
echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}) | ||
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}) | ||
- name: Update VERSION file | ||
run: echo ${RELEASE_VERSION} > ${PACKAGE_NAME}/VERSION | ||
- name: Install dependencies | ||
run: pip install setuptools wheel twine | ||
- name: Build and publish | ||
run: | | ||
echo ${RELEASE_VERSION} > VERSION | ||
git add VERSION | ||
- name: Commit files | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
- name: Git - Add VERSION File | ||
run: git add ${PACKAGE_NAME}/VERSION | ||
- name: Git - Commit VERSION File | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ALiCE Biometrics" | ||
|
@@ -29,15 +39,3 @@ jobs: | |
uses: alice-biometrics/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_ACCESS_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import os | ||
|
||
from meiga.public_api import * | ||
from meiga import public_api | ||
|
||
ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
__version__ = open(f"{ROOT_PATH}/VERSION", "r").read()[:-1] | ||
|
||
__all__ = public_api.__all__ |
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