|
5 | 5 | branches:
|
6 | 6 | - master
|
7 | 7 | tags:
|
| 8 | + release: |
| 9 | + types: [published] |
8 | 10 | pull_request:
|
9 | 11 | schedule:
|
10 | 12 | - cron: '0 5 * * 4'
|
@@ -152,42 +154,42 @@ jobs:
|
152 | 154 | channel: '#notifications'
|
153 | 155 | url: ${{ secrets.SLACK_WEBHOOK }}
|
154 | 156 |
|
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 |
161 | 163 |
|
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 |
166 | 168 |
|
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 |
171 | 173 |
|
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 |
176 | 178 |
|
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/ |
184 | 186 |
|
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 }} |
191 | 193 |
|
192 | 194 | # - name: Dockerhub login
|
193 | 195 | # env:
|
@@ -229,14 +231,14 @@ jobs:
|
229 | 231 | # build_helpers/publish_docker_pi.sh
|
230 | 232 |
|
231 | 233 |
|
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 }} |
242 | 244 |
|
0 commit comments