From 8493351f15b6c1af40e2d53d9fd5677385412b18 Mon Sep 17 00:00:00 2001 From: Tobi Okedeji Date: Thu, 25 Apr 2024 16:40:06 +0100 Subject: [PATCH] standard version 1 --- .github/workflows/publish.yaml | 28 ++++++++++++++++++++++++++++ allocmd/templates/config.yaml.j2 | 6 +++--- allocmd/utilities/constants.py | 2 +- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..4b04197 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Deploy to PyPI + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.7' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build package + run: | + python setup.py sdist bdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@v1.4.2 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/allocmd/templates/config.yaml.j2 b/allocmd/templates/config.yaml.j2 index 4962e5c..67fb9fd 100644 --- a/allocmd/templates/config.yaml.j2 +++ b/allocmd/templates/config.yaml.j2 @@ -1,10 +1,10 @@ # place all worker configuration variables here name: {{ name }} -faucet_url: https://faucet.testnet.allora.network:8443/ +faucet_url: https://faucet.testnet.allora.network/ worker: - boot_nodes: /dns4/heads.testnet.allora.network/tcp/9010/p2p/12D3KooWGAA1C2UNyj51QaGX5aXnVzRqeaqhyhUFFJixdqshwWC3 - chain_rpc_address: https://allora-rpc.testnet.allora.network:8443/ + boot_nodes: /dns4/head-0.testnet.allora.network/tcp/9010/p2p/12D3KooWGAA1C2UNyj51QaGX5aXnVzRqeaqhyhUFFJixdqshwWC3 + chain_rpc_address: https://allora-rpc.testnet.allora.network/ chain_topic_id: {{ topic_id }} mnemonic: "" hex_coded_pk: "" diff --git a/allocmd/utilities/constants.py b/allocmd/utilities/constants.py index ef9c6eb..9ae7210 100644 --- a/allocmd/utilities/constants.py +++ b/allocmd/utilities/constants.py @@ -1,2 +1,2 @@ -cliVersion = "0.2.3" +cliVersion = "1.0.0"