From a5d0550100174f4c4861dbe143c33598a59dbb1e Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Wed, 10 May 2023 02:28:23 -0700 Subject: [PATCH] Fix release workflow --- .github/workflows/django-test.yml | 18 ++---------------- .github/workflows/release.yml | 4 +++- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/django-test.yml b/.github/workflows/django-test.yml index fd891012..481e3c32 100644 --- a/.github/workflows/django-test.yml +++ b/.github/workflows/django-test.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9590894..7351c023 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: