Skip to content

Commit 3323c1a

Browse files
authored
Merge pull request #118 from freqtrade/release_ci
Release 1.2.0
2 parents 7f44b6c + b8d39f7 commit 3323c1a

File tree

2 files changed

+44
-42
lines changed

2 files changed

+44
-42
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77
tags:
8+
release:
9+
types: [published]
810
pull_request:
911
schedule:
1012
- cron: '0 5 * * 4'
@@ -152,42 +154,42 @@ jobs:
152154
channel: '#notifications'
153155
url: ${{ secrets.SLACK_WEBHOOK }}
154156

155-
# deploy:
156-
# needs: [ build, build_windows ]
157-
# runs-on: ubuntu-18.04
158-
# if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade'
159-
# steps:
160-
# - uses: actions/checkout@v2
157+
deploy:
158+
needs: [ build, build_windows ]
159+
runs-on: ubuntu-18.04
160+
if: (github.event_name == 'push' || github.event_name == 'release') && github.repository == 'freqtrade/technical'
161+
steps:
162+
- uses: actions/checkout@v2
161163

162-
# - name: Set up Python
163-
# uses: actions/setup-python@v1
164-
# with:
165-
# python-version: 3.8
164+
- name: Set up Python
165+
uses: actions/setup-python@v1
166+
with:
167+
python-version: 3.8
166168

167-
# - name: Extract branch name
168-
# shell: bash
169-
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
170-
# id: extract_branch
169+
- name: Extract branch name
170+
shell: bash
171+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
172+
id: extract_branch
171173

172-
# - name: Build distribution
173-
# run: |
174-
# pip install -U setuptools wheel
175-
# python setup.py sdist bdist_wheel
174+
- name: Build distribution
175+
run: |
176+
pip install -U setuptools wheel
177+
python setup.py sdist bdist_wheel
176178
177-
# - name: Publish to PyPI (Test)
178-
# uses: pypa/gh-action-pypi-publish@master
179-
# if: (steps.extract_branch.outputs.branch == 'master' || github.event_name == 'release')
180-
# with:
181-
# user: __token__
182-
# password: ${{ secrets.pypi_test_password }}
183-
# repository_url: https://test.pypi.org/legacy/
179+
- name: Publish to PyPI (Test)
180+
uses: pypa/gh-action-pypi-publish@master
181+
if: (github.event_name == 'release')
182+
with:
183+
user: __token__
184+
password: ${{ secrets.pypi_test_password }}
185+
repository_url: https://test.pypi.org/legacy/
184186

185-
# - name: Publish to PyPI
186-
# uses: pypa/gh-action-pypi-publish@master
187-
# if: (steps.extract_branch.outputs.branch == 'master' || github.event_name == 'release')
188-
# with:
189-
# user: __token__
190-
# password: ${{ secrets.pypi_password }}
187+
- name: Publish to PyPI
188+
uses: pypa/gh-action-pypi-publish@master
189+
if: (github.event_name == 'release')
190+
with:
191+
user: __token__
192+
password: ${{ secrets.pypi_password }}
191193

192194
# - name: Dockerhub login
193195
# env:
@@ -229,14 +231,14 @@ jobs:
229231
# build_helpers/publish_docker_pi.sh
230232

231233

232-
# - name: Slack Notification
233-
# uses: homoluctus/slatify@v1.8.0
234-
# if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
235-
# with:
236-
# type: ${{ job.status }}
237-
# job_name: '*Freqtrade CI Deploy*'
238-
# mention: 'here'
239-
# mention_if: 'failure'
240-
# channel: '#notifications'
241-
# url: ${{ secrets.SLACK_WEBHOOK }}
234+
- name: Slack Notification
235+
uses: homoluctus/slatify@v1.8.0
236+
if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
237+
with:
238+
type: ${{ job.status }}
239+
job_name: '*Technical CI Deploy*'
240+
mention: 'here'
241+
mention_if: 'failure'
242+
channel: '#notifications'
243+
url: ${{ secrets.SLACK_WEBHOOK }}
242244

technical/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.1.0'
1+
__version__ = '1.2.0'

0 commit comments

Comments
 (0)