From fc422b5c411ff4010328846075e7526acb453d63 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 4 Oct 2020 10:08:00 +0200 Subject: [PATCH 1/2] Add test ci --- .github/workflows/ci.yml | 73 +++++++++++++++++++++------------------- technical/__init__.py | 2 +- 2 files changed, 39 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04c4b7f9..aeb4acce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,10 @@ on: push: branches: - master + - release_ci tags: + release: + types: [published] pull_request: schedule: - cron: '0 5 * * 4' @@ -152,35 +155,35 @@ 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: (steps.extract_branch.outputs.branch == 'master' || steps.extract_branch.outputs.branch == 'release_ci' || 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 @@ -229,14 +232,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 }} diff --git a/technical/__init__.py b/technical/__init__.py index 1a72d32e..b3ddbc41 100644 --- a/technical/__init__.py +++ b/technical/__init__.py @@ -1 +1 @@ -__version__ = '1.1.0' +__version__ = '1.1.1' From b8d39f788ddfca0c164442f45e2515d1048cd84a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 4 Oct 2020 10:19:51 +0200 Subject: [PATCH 2/2] Version bump 1.2.0 --- .github/workflows/ci.yml | 15 +++++++-------- technical/__init__.py | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aeb4acce..20b4b5a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: - master - - release_ci tags: release: types: [published] @@ -179,18 +178,18 @@ jobs: - name: Publish to PyPI (Test) uses: pypa/gh-action-pypi-publish@master - if: (steps.extract_branch.outputs.branch == 'master' || steps.extract_branch.outputs.branch == 'release_ci' || github.event_name == 'release') + 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: diff --git a/technical/__init__.py b/technical/__init__.py index b3ddbc41..58d478ab 100644 --- a/technical/__init__.py +++ b/technical/__init__.py @@ -1 +1 @@ -__version__ = '1.1.1' +__version__ = '1.2.0'