Skip to content

Commit

Permalink
switch to prod release
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Oct 9, 2019
1 parent 5ecf9ca commit e5b64c0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 34 deletions.
31 changes: 15 additions & 16 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,9 @@ local PipelineBuildPackage = {
image: "alpine",
pull: "always",
commands: [
"cd dist/ && sha256sum * > sha256sum.txt"
"cd dist/ && sha256sum * > ../sha256sum.txt"
],
},
{
name: "publish-pypi",
image: "plugins/pypi",
pull: "always",
settings: {
username: { "from_secret": "pypi_username" },
password: { "from_secret": "pypi_password" },
repository: "https://upload.pypi.org/legacy/",
skip_build: true
},
when: {
ref: [ "refs/tags/**" ],
},
},
{
name: "publish-github",
image: "plugins/github-release",
Expand All @@ -146,7 +132,20 @@ local PipelineBuildPackage = {
ref: [ "refs/tags/**" ],
},
},

{
name: "publish-pypi",
image: "plugins/pypi",
pull: "always",
settings: {
username: { "from_secret": "pypi_username" },
password: { "from_secret": "pypi_password" },
repository: "https://upload.pypi.org/legacy/",
skip_build: true
},
when: {
ref: [ "refs/tags/**" ],
},
},
],
depends_on: [
"security",
Expand Down
32 changes: 16 additions & 16 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,7 @@ steps:
pull: always
image: alpine
commands:
- "cd dist/ && sha256sum * > sha256sum.txt"

- name: publish-pypi
pull: always
image: plugins/pypi
settings:
password:
from_secret: pypi_password
repository: https://upload.pypi.org/legacy/
skip_build: true
username:
from_secret: pypi_username
when:
ref:
- "refs/tags/**"
- "cd dist/ && sha256sum * > ../sha256sum.txt"

- name: publish-github
pull: always
Expand All @@ -168,6 +154,20 @@ steps:
ref:
- "refs/tags/**"

- name: publish-pypi
pull: always
image: plugins/pypi
settings:
password:
from_secret: pypi_password
repository: https://upload.pypi.org/legacy/
skip_build: true
username:
from_secret: pypi_username
when:
ref:
- "refs/tags/**"

trigger:
ref:
- refs/heads/master
Expand Down Expand Up @@ -423,6 +423,6 @@ depends_on:

---
kind: signature
hmac: 87257d5264e6bb90cf0ab66a9c476b496bed6600ba4e9ec6dbdadb2e319904d2
hmac: 1de34e36b19655755ede9fa231224c029cb6a7acfc773dcd544bf3a758672302

...
2 changes: 1 addition & 1 deletion ansibledoctor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = "Robert Kaussow"
__project__ = "ansible-doctor"
__version__ = "0.1.0-beta2"
__version__ = "0.1.0"
__license__ = "GPL-3.0"
__maintainer__ = "Robert Kaussow"
__email__ = "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_readme(filename="README.md"):
zip_safe=False,
python_requires=">=3.5",
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
Expand Down

0 comments on commit e5b64c0

Please sign in to comment.