mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-05 08:23:38 +00:00
deploy only if tags (#43)
* add VERSION symlink * deploy only on tags true
This commit is contained in:
@@ -32,6 +32,7 @@ jobs:
|
||||
on:
|
||||
branch: master
|
||||
repo: davegallant/rfd
|
||||
tags: true
|
||||
provider: pypi
|
||||
user: __token__
|
||||
password:
|
||||
|
@@ -1,3 +1,6 @@
|
||||
include requirements.txt
|
||||
include requirements_dev.txt
|
||||
include rfd/__version__.py
|
||||
include rfd/VERSION
|
||||
|
||||
recursive-exclude * __pycache__
|
||||
recursive-include tests *
|
||||
|
1
rfd/VERSION
Normal file
1
rfd/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
0.3.2
|
@@ -1,4 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
version = "0.3.2"
|
||||
from os.path import dirname, abspath, join
|
||||
|
||||
|
||||
def load_version():
|
||||
with open(join(dirname(abspath(__file__)), "VERSION")) as handle:
|
||||
return handle.read()
|
||||
|
||||
|
||||
version = load_version()
|
||||
|
Reference in New Issue
Block a user