Skip to content

Commit

Permalink
Merge pull request #118 from freqtrade/release_ci
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
xmatthias committed Oct 4, 2020
2 parents 7f44b6c + b8d39f7 commit 3323c1a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 42 deletions.
84 changes: 43 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- master
tags:
release:
types: [published]
pull_request:
schedule:
- cron: '0 5 * * 4'
Expand Down Expand Up @@ -152,42 +154,42 @@ jobs:
channel: '#notifications'
url: ${{ secrets.SLACK_WEBHOOK }}

# deploy:
# needs: [ build, build_windows ]
# runs-on: ubuntu-18.04
# if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade'
# steps:
# - uses: actions/checkout@v2
deploy:
needs: [ build, build_windows ]
runs-on: ubuntu-18.04
if: (github.event_name == 'push' || github.event_name == 'release') && github.repository == 'freqtrade/technical'
steps:
- uses: actions/checkout@v2

# - name: Set up Python
# uses: actions/setup-python@v1
# with:
# python-version: 3.8
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8

# - name: Extract branch name
# shell: bash
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# id: extract_branch
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

# - name: Build distribution
# run: |
# pip install -U setuptools wheel
# python setup.py sdist bdist_wheel
- name: Build distribution
run: |
pip install -U setuptools wheel
python setup.py sdist bdist_wheel
# - name: Publish to PyPI (Test)
# uses: pypa/gh-action-pypi-publish@master
# if: (steps.extract_branch.outputs.branch == 'master' || github.event_name == 'release')
# with:
# user: __token__
# password: ${{ secrets.pypi_test_password }}
# repository_url: https://test.pypi.org/legacy/
- name: Publish to PyPI (Test)
uses: pypa/gh-action-pypi-publish@master
if: (github.event_name == 'release')
with:
user: __token__
password: ${{ secrets.pypi_test_password }}
repository_url: https://test.pypi.org/legacy/

# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@master
# if: (steps.extract_branch.outputs.branch == 'master' || github.event_name == 'release')
# with:
# user: __token__
# password: ${{ secrets.pypi_password }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
if: (github.event_name == 'release')
with:
user: __token__
password: ${{ secrets.pypi_password }}

# - name: Dockerhub login
# env:
Expand Down Expand Up @@ -229,14 +231,14 @@ jobs:
# build_helpers/publish_docker_pi.sh


# - name: Slack Notification
# uses: homoluctus/slatify@v1.8.0
# if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
# with:
# type: ${{ job.status }}
# job_name: '*Freqtrade CI Deploy*'
# mention: 'here'
# mention_if: 'failure'
# channel: '#notifications'
# url: ${{ secrets.SLACK_WEBHOOK }}
- name: Slack Notification
uses: homoluctus/slatify@v1.8.0
if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
with:
type: ${{ job.status }}
job_name: '*Technical CI Deploy*'
mention: 'here'
mention_if: 'failure'
channel: '#notifications'
url: ${{ secrets.SLACK_WEBHOOK }}

2 changes: 1 addition & 1 deletion technical/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.0'
__version__ = '1.2.0'

0 comments on commit 3323c1a

Please sign in to comment.