Skip to content

Commit 028bc45

Browse files
author
github-actions
committed
build: 56277bef57495808ecfe99130c03504219044a56
1 parent ded8fed commit 028bc45

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/remote-build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
env:
8+
EXCHANGES_JSON: '["binance", "okx", "kraken", "coinbase", "bybit"]'
9+
10+
jobs:
11+
build_for_pypi:
12+
if: ${{ github.event.repository.name != 'ccxt-python-single-exchange' && contains(github.event.head_commit.message, '[BUILD]') }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
# - name: Check repository name
16+
# id: check
17+
# run: |
18+
# if [ "${{ github.event.repository.name }}" == "ccxt-python-single-exchange" ]; then
19+
# echo "Repository is xyz, cancelling workflow"
20+
# exit 0
21+
# fi
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
ref: ${{ github.ref }}
26+
persist-credentials: false
27+
- name: echo something
28+
run: echo "something"
29+
30+
readme_update:
31+
if: ${{ github.event.repository.name != 'ccxt-python-single-exchange' && contains(github.event.head_commit.message, '[BUILD]') }}
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout code
35+
uses: actions/checkout@v4
36+
with:
37+
ref: ${{ github.ref }}
38+
39+
- name: Update README with repository links
40+
run: chmod +x ./build/update-readme.sh && ./build/update-readme.sh
41+
42+
- name: Commit and push changes
43+
run: |
44+
git config --local user.email "[email protected]"
45+
git config --local user.name "GitHub Action"
46+
git add README.md
47+
git commit -m "Update README with exchange repository links" || echo "No changes to commit"
48+
git push

0 commit comments

Comments
 (0)