Skip to content

Commit 8ba9138

Browse files
authored
Update brazil route to /upload (#18)
1 parent f75863b commit 8ba9138

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

.changeset/sharp-birds-knock.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'build-uploader': patch
3+
---
4+
5+
Update upload route

.github/workflows/pr.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: pnpm/action-setup@v4
11-
with:
12-
version: 9
10+
- run: corepack enable
1311
- uses: actions/setup-node@v4
1412
with:
1513
node-version: 20

.github/workflows/release.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16-
- uses: pnpm/action-setup@v4
17-
with:
18-
version: 9
16+
- run: corepack enable
1917
- uses: actions/setup-node@v4
2018
with:
2119
node-version: 20
22-
cache: "pnpm"
20+
cache: 'pnpm'
2321
- name: Install dependencies
2422
run: pnpm install --frozen-lockfile
2523
- name: Create release PR

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@
4545
"engines": {
4646
"pnpm": ">=9.0.0",
4747
"node": ">=20"
48-
}
48+
},
49+
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
4950
}

src/completeBuild.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function completeBuild({
1313
}) {
1414
core.info('Marking build as complete');
1515
await fetch(
16-
`${apiBaseUrl}/v3/dashboard/games/${gameId}/builds/${buildId}/complete`,
16+
`${apiBaseUrl}/v3/upload/games/${gameId}/builds/${buildId}/complete`,
1717
{
1818
method: 'POST',
1919
headers: {

src/createBuild.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function createBuild({
3333

3434
core.info('Initializing build');
3535
const initResponse = await fetch(
36-
`${apiBaseUrl}/v3/dashboard/games/${gameId}/builds`,
36+
`${apiBaseUrl}/v3/upload/games/${gameId}/builds`,
3737
{
3838
method: 'POST',
3939
headers: {

src/uploadBuild.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function uploadBuild({
4242
body.append('buildChunk', new Blob([buffer.subarray(0, bytesRead)]));
4343

4444
const chunkResponse = await fetch(
45-
`${apiBaseUrl}/v3/dashboard/games/${gameId}/builds`,
45+
`${apiBaseUrl}/v3/upload/games/${gameId}/builds`,
4646
{
4747
method: 'POST',
4848
headers: {

0 commit comments

Comments
 (0)