Skip to content

Commit 51f4dff

Browse files
Merge pull request #6 from mxenabled/bm/auto_release
Auto release
2 parents 9600c81 + 9c7dbb1 commit 51f4dff

File tree

8 files changed

+33
-6
lines changed

8 files changed

+33
-6
lines changed

.github/read_version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require "yaml"
2+
config = ::YAML.load(File.read("openapi/config.yml"))
3+
puts config["packageVersion"]

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [master]
66

77
jobs:
8-
build:
8+
Publish:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
Release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Ruby
13+
uses: ruby/setup-ruby@v1
14+
with:
15+
bundler-cache: true
16+
ruby-version: 3.1
17+
- name: Read version
18+
id: read_version
19+
run: echo "::set-output name=version::$(ruby .github/read_version.rb)"
20+
- name: Create tag and release
21+
run: |
22+
gh release create "v${{ steps.read_version.outputs.version }}"
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

mx_platform_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212

13-
__version__ = "0.4.0"
13+
__version__ = "0.4.1"
1414

1515
# import ApiClient
1616
from mx_platform_python.api_client import ApiClient

mx_platform_python/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7676
self.default_headers[header_name] = header_value
7777
self.cookie = cookie
7878
# Set default User-Agent.
79-
self.user_agent = 'OpenAPI-Generator/0.4.0/python'
79+
self.user_agent = 'OpenAPI-Generator/0.4.1/python'
8080

8181
def __enter__(self):
8282
return self

mx_platform_python/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def to_debug_report(self):
404404
"OS: {env}\n"\
405405
"Python Version: {pyversion}\n"\
406406
"Version of the API: 0.1.0\n"\
407-
"SDK Package Version: 0.4.0".\
407+
"SDK Package Version: 0.4.1".\
408408
format(env=sys.platform, pyversion=sys.version)
409409

410410
def get_host_settings(self):

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
packageName: mx_platform_python
22
packageUrl: https://pypi.org/project/mx-platform-python
3-
packageVersion: 0.4.0
3+
packageVersion: 0.4.1
44
projectName: mx-platform-python

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from setuptools import setup, find_packages # noqa: H301
1212

1313
NAME = "mx-platform-python"
14-
VERSION = "0.4.0"
14+
VERSION = "0.4.1"
1515
# To install the library, run the following
1616
#
1717
# python setup.py install

0 commit comments

Comments
 (0)