Skip to content

Commit

Permalink
fix(ci): updated permissioning and versioning in GitHub Actions
Browse files Browse the repository at this point in the history
Also removed dead code from the Weaver Corda sample application.

Signed-off-by: VRamakrishna <[email protected]>
  • Loading branch information
VRamakrishna committed Aug 16, 2024
1 parent 30cde8b commit db81e1d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,10 @@ jobs:
run: 'python3 docs/scripts/publish_openapi.py'

- name: Build and publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pages: write
run: git pull && mkdocs gh-deploy
working-directory: docs
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-asset-exchange-fabric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protoc-3.15.6-linux-x86_64.zip
unzip protoc-3.15.6-linux-x86_64.zip -d protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
# PROTOS
- name: Build JS Protos
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-asset-transfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ jobs:
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protoc-3.15.6-linux-x86_64.zip
unzip protoc-3.15.6-linux-x86_64.zip -d protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
# PROTOS
- name: Build GO Protos
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_weaver-data-sharing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ jobs:
unzip protoc-3.15.6-linux-x86_64.zip -d protoc
rm -rf protoc-3.15.6-linux-x86_64.zip
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
- name: CI script for cleanup
run: ./tools/ci.sh
Expand Down Expand Up @@ -896,7 +896,7 @@ jobs:
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protoc-3.15.6-linux-x86_64.zip
unzip protoc-3.15.6-linux-x86_64.zip -d protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
# PROTOS
- name: Build GO Protos
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_weaver-fabric-fabric-satp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protoc-3.15.6-linux-x86_64.zip
unzip protoc-3.15.6-linux-x86_64.zip -d protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
# PROTOS GO
- name: Build GO Protos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ repositories {
dirs '../../../../core/network/corda-interop-app/interop-workflows/build/libs'
dirs '../../../../sdks/corda/build/libs'
dirs '../../../../common/protos-java-kt/build/libs'
dirs 'libs'
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions weaver/samples/corda/corda-simple-application/makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
CLIKT_VERSION=$(shell grep cliktVersion ./constants.properties | cut -d '=' -f 2)

.PHONY: build-local-weaver-dependencies
build-local-weaver-dependencies:
echo "Building local protos..."
Expand Down Expand Up @@ -112,4 +110,3 @@ publish-cordapps:
clean:
./gradlew clean
rm -rf .gradle
rm -rf clients/libs

0 comments on commit db81e1d

Please sign in to comment.