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: strategy:
max-parallel: 4 max-parallel: 4
matrix: matrix:
python-version: ["3.10.9"] python-version: ["3.11"]
steps: steps:
- name: 'Checkout' - name: 'Checkout'
@ -36,21 +36,7 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
- name: 'Install LND gRPC Dependencies' - name: 'Install LND gRPC Dependencies'
run: | run: bash generate_grpc.sh
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
- name: 'Create .env File' - name: 'Create .env File'
run: | run: |
mv .env-sample .env mv .env-sample .env

View File

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