Fix release workflow

This commit is contained in:
Reckless_Satoshi 2023-05-10 02:28:23 -07:00
parent a97abff1e7
commit a5d0550100
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 5 additions and 17 deletions

View File

@ -22,7 +22,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10.9"]
python-version: ["3.11"]
steps:
- name: 'Checkout'
@ -36,21 +36,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 'Install LND gRPC Dependencies'
run: |
cd api/lightning
git clone https://github.com/googleapis/googleapis.git
curl -o lightning.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/lightning.proto
python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. lightning.proto
curl -o invoices.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/invoicesrpc/invoices.proto
python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. invoices.proto
curl -o router.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/routerrpc/router.proto
python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. router.proto
sed -i 's/^import .*_pb2 as/from . \0/' router_pb2.py
sed -i 's/^import .*_pb2 as/from . \0/' invoices_pb2.py
sed -i 's/^import .*_pb2 as/from . \0/' router_pb2_grpc.py
sed -i 's/^import .*_pb2 as/from . \0/' lightning_pb2_grpc.py
sed -i 's/^import .*_pb2 as/from . \0/' invoices_pb2_grpc.py
run: bash generate_grpc.sh
- name: 'Create .env File'
run: |
mv .env-sample .env

View File

@ -6,6 +6,9 @@ on:
tags:
- "v*.*.*"
permissions: write-all
jobs:
check-versions:
runs-on: ubuntu-latest
@ -67,7 +70,6 @@ jobs:
semver: ${{ needs.check-versions.outputs.semver }}
release:
permissions: write-all
needs: [check-versions, coordinator-image, client-image, android-build]
runs-on: ubuntu-latest
steps: