Skip to content

Commit

Permalink
Update :serverless :adapter :wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Aug 21, 2024
1 parent b0268f6 commit 7cde87b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

on:
push:
branches-ignore: [ master ]
branches-ignore: [ master, release/** ]

permissions:
contents: read
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
run: |
export REMOTE="https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git"
git remote set-url origin "$REMOTE"
git clone "$REMOTE" --branch gh-pages build/gh-pages
./gradlew build
./gradlew -x build buildSite
ls -AlF site/build/site
Expand All @@ -43,10 +42,3 @@ jobs:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew --no-daemon -x test release

- run: |
cp -rf site/build/site/* build/gh-pages/
cd build/gh-pages
git add --all
git commit -m "Publishing to gh-pages"
git push origin gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,25 @@ class GoogleServerlessHttpAdapter(private val handler: HttpHandler): HttpFunctio
val qp = request.queryParameters?.map { (k, v) -> QueryParameter(k, v) } ?: emptyList()
val h = request.headers?.map { (k, v) -> Header(k, v) } ?: emptyList()

request.parts
request.parts.map { (k, v) ->
HttpPart(
name = k,
body = v.inputStream.readAllBytes(),
headers = Headers(),
contentType = v.contentType?.map { parseContentType(it) }?.orElse(null),
size = v.contentLength,
submittedFileName = v.fileName.orElse(null),

/*
name: String,
body: Any,
headers: Headers = Headers(),
contentType: ContentType? = null,
size: Long = -1L,
submittedFileName: String? = null
*/
)
}

return HttpRequest(
method = HttpMethod.valueOf(request.method),
Expand Down

0 comments on commit 7cde87b

Please sign in to comment.