Skip to content

Commit

Permalink
correct deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed May 15, 2024
1 parent 5df6240 commit 54655b0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,4 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next --functions=netlify/functions

- name: Publish to production
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_V2 }}
run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next --functions=netlify/functions --prod
run: netlify deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --prod --dir=.next
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules
.next
.DS_Store

# Local Netlify folder
.netlify
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
command = "yarn build"
publish = ".next"

[[plugins]]
package = "@netlify/plugin-nextjs"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@netlify/plugin-nextjs": "^5.2.2",
"next": "^14.2.3",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
Expand All @@ -12,4 +13,4 @@
"start": "next start",
"fixlinks": "node scripts/fixRelativeLinks.js"
}
}
}
1 change: 1 addition & 0 deletions pages/devs/how-to-create-topic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ An explanation in more detail of some of these fields.
- `InferenceLogic` defines a WASM blockless function to trigger the call to the `main.py` file in the worker. These values are expected to be reused from the example.
- `WeightCadence` and `InferenceCadence`: the cadence (in seconds) at which the inference and weight adjustment cycles are run. Weight adjustment will use several runs of inferences to make the adjustment, so normally the weight cadence will be several times higher than the inference. This can be adjusted to fit each particular predictive case.
- `DefaultArg` value will be passed as an argument to the python script, i.e. when the worker receives the request, it will attempt to run `python3 <location-of-main.py> <TopicId> <DefaultArg>`. This will be used in the scoring stage to request inferences from the chain.

5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
"@napi-rs/simple-git-win32-arm64-msvc" "0.1.16"
"@napi-rs/simple-git-win32-x64-msvc" "0.1.16"

"@netlify/plugin-nextjs@^5.2.2":
version "5.2.2"
resolved "https://registry.yarnpkg.com/@netlify/plugin-nextjs/-/plugin-nextjs-5.2.2.tgz#3c283d335001f9e0fbcb4db75557e5fe1660db72"
integrity sha512-jV/P7o8+v1XaEGb7wvFfkF1fSLggAxjg7WYoBPkD3R93bsI6xmCDKBcUJ/6g7lqECRXt4dGKApSFtGk/pUmAHw==

"@next/[email protected]":
version "14.2.3"
resolved "https://registry.yarnpkg.com/@next/env/-/env-14.2.3.tgz#d6def29d1c763c0afb397343a15a82e7d92353a0"
Expand Down

0 comments on commit 54655b0

Please sign in to comment.