diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 4471227..3c277b4 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -2,9 +2,7 @@ name: Vercel Preview on: workflow_dispatch: - push: - branches-ignore: - - main + pull_request: env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} @@ -14,19 +12,19 @@ env: jobs: deploy: runs-on: ubuntu-latest - container: swift:5.8-amazonlinux2 + container: swift:5.10-amazonlinux2 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: .build key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} restore-keys: | ${{ runner.os }}-spm- - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16 @@ -34,4 +32,4 @@ jobs: run: npm install -g vercel@latest - name: Deploy - run: swift package --disable-sandbox vercel --deploy \ No newline at end of file + run: swift package --disable-sandbox vercel deploy diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 2618545..61ef467 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -12,20 +12,20 @@ env: jobs: deploy: - runs-on: buildjet-4vcpu-ubuntu-2204 - container: swift:5.8-amazonlinux2 + runs-on: ubuntu-latest + container: swift:5.10-amazonlinux2 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: .build key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} restore-keys: | ${{ runner.os }}-spm- - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16 @@ -33,4 +33,4 @@ jobs: run: npm install -g vercel@latest - name: Deploy - run: swift package --disable-sandbox vercel --deploy --prod \ No newline at end of file + run: swift package --disable-sandbox vercel deploy --prod diff --git a/.swift-format b/.swift-format new file mode 100644 index 0000000..306e8dd --- /dev/null +++ b/.swift-format @@ -0,0 +1,7 @@ +{ + "indentation" : { + "spaces": 4 + }, + "tabWidth": 4, + "version": 1 +} \ No newline at end of file diff --git a/Package.resolved b/Package.resolved index 188941b..aae37d7 100644 --- a/Package.resolved +++ b/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swift-server/async-http-client.git", "state" : { - "revision" : "5ccda442f103792d67680aefc8d0a87392fbd66c", - "version" : "1.20.0" + "revision" : "291438696abdd48d2a83b52465c176efbd94512b", + "version" : "1.20.1" } }, { @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/console-kit.git", "state" : { - "revision" : "a7dd7001196d39b758e4990ec0f26f80162f4c84", - "version" : "4.14.0" + "revision" : "a31f44ebfbd15a2cc0fda705279676773ac16355", + "version" : "4.14.1" } }, { @@ -66,19 +66,10 @@ { "identity" : "swift-aws-lambda-runtime", "kind" : "remoteSourceControl", - "location" : "https://github.com/swift-server/swift-aws-lambda-runtime.git", + "location" : "https://github.com/swift-server/swift-aws-lambda-runtime", "state" : { - "revision" : "de730b240df25897c4b5b68889c178c994fd6817", - "version" : "1.0.0-alpha.1" - } - }, - { - "identity" : "swift-backtrace", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swift-server/swift-backtrace.git", - "state" : { - "revision" : "80746bdd0ac8a7d83aad5d89dac3cbf15de652e6", - "version" : "1.3.4" + "revision" : "8d9f44b7838750b103ad2ad49055e8333d719e8a", + "version" : "1.0.0-alpha.2" } }, { @@ -86,8 +77,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections.git", "state" : { - "revision" : "d029d9d39c87bed85b1c50adee7c41795261a192", - "version" : "1.0.6" + "revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb", + "version" : "1.1.0" } }, { @@ -95,8 +86,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-crypto", "state" : { - "revision" : "60f13f60c4d093691934dc6cfdf5f508ada1f894", - "version" : "2.6.0" + "revision" : "f0525da24dc3c6cbb2b6b338b65042bc91cbc4bb", + "version" : "3.3.0" } }, { @@ -104,8 +95,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-http-types", "state" : { - "revision" : "1827dc94bdab2eb5f2fc804e9b0cb43574282566", - "version" : "1.0.2" + "revision" : "12358d55a3824bd5fed310b999ea8cf83a9a1a65", + "version" : "1.0.3" } }, { @@ -113,8 +104,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { - "revision" : "532d8b529501fb73a2455b179e0bbb6d49b652ed", - "version" : "1.5.3" + "revision" : "e97a6fcb1ab07462881ac165fdbb37f067e205d5", + "version" : "1.5.4" } }, { @@ -131,8 +122,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio.git", "state" : { - "revision" : "702cd7c56d5d44eeba73fdf83918339b26dc855c", - "version" : "2.62.0" + "revision" : "fc63f0cf4e55a4597407a9fc95b16a2bc44b4982", + "version" : "2.64.0" } }, { @@ -140,8 +131,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-extras.git", "state" : { - "revision" : "798c962495593a23fdea0c0c63fd55571d8dff51", - "version" : "1.20.0" + "revision" : "a3b640d7dc567225db7c94386a6e71aded1bfa63", + "version" : "1.22.0" } }, { @@ -149,8 +140,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-http2.git", "state" : { - "revision" : "3bd9004b9d685ed6b629760fc84903e48efec806", - "version" : "1.29.0" + "revision" : "0904bf0feb5122b7e5c3f15db7df0eabe623dd87", + "version" : "1.30.0" } }, { @@ -158,8 +149,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-ssl.git", "state" : { - "revision" : "320bd978cceb8e88c125dcbb774943a92f6286e9", - "version" : "2.25.0" + "revision" : "7c381eb6083542b124a6c18fae742f55001dc2b5", + "version" : "2.26.0" } }, { @@ -167,8 +158,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-transport-services.git", "state" : { - "revision" : "ebf8b9c365a6ce043bf6e6326a04b15589bd285e", - "version" : "1.20.0" + "revision" : "6cbe0ed2b394f21ab0d46b9f0c50c6be964968ce", + "version" : "1.20.1" } }, { @@ -180,13 +171,22 @@ "version" : "1.0.2" } }, + { + "identity" : "swift-system", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-system.git", + "state" : { + "revision" : "025bcb1165deab2e20d4eaba79967ce73013f496", + "version" : "1.2.1" + } + }, { "identity" : "vapor", "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/vapor", "state" : { - "revision" : "0680f9f6bfab7100cd585b3186740ee7860c983e", - "version" : "4.91.1" + "revision" : "11cdb29614a5c7f8c5289f3c97b3398c3d89b395", + "version" : "4.92.5" } }, { @@ -194,8 +194,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/swift-cloud/Vercel", "state" : { - "revision" : "2e1defbea789dd48733799f53e981ea49a44f346", - "version" : "2.1.0" + "revision" : "5f0a071e8aec9c93039453cf928d54f2fa53ffb8", + "version" : "2.2.0" } }, { @@ -203,8 +203,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/vapor/websocket-kit.git", "state" : { - "revision" : "53fe0639a98903858d0196b699720decb42aee7b", - "version" : "2.14.0" + "revision" : "4232d34efa49f633ba61afde365d3896fc7f8740", + "version" : "2.15.0" } } ], diff --git a/Package.swift b/Package.swift index 23d6d75..241d785 100644 --- a/Package.swift +++ b/Package.swift @@ -8,7 +8,7 @@ let package = Package( .macOS(.v12) ], dependencies: [ - .package(url: "https://github.com/swift-cloud/Vercel", from: "2.1.0") + .package(url: "https://github.com/swift-cloud/Vercel", from: "2.2.0") ], targets: [ .executableTarget(name: "App", dependencies: ["Vercel"])