Updates for versioning support
This commit is contained in:
parent
6212e8977b
commit
c1c856a858
5
.github/workflows/build-and-deploy.yml
vendored
5
.github/workflows/build-and-deploy.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Node.js CI
|
||||
name: Build 1.0
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -28,4 +28,5 @@ jobs:
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: public
|
||||
folder: public
|
||||
target-folder: "1.0"
|
@ -32,3 +32,17 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
|
||||
|
||||
## New schema version
|
||||
|
||||
If a new schema version comes out, this is what you will need to do.
|
||||
|
||||
1. Create a new branch with the schema version as the branch name (for example, 1.1)
|
||||
1. Open `.github/workflows/build-and-deploy.yml` and change the on: push: branches: to match the new version:
|
||||
```
|
||||
on:
|
||||
push:
|
||||
branches: [ 1.1 ]
|
||||
```
|
||||
then at the bottom of the file change the `target-folder` to match the version `target-folder: "1.1"`
|
||||
1. Open `site/next.config.js` and change `env.schema` to match the version number, add the version number to the `env.listUrl` and append the version number to the `basePath` as well.
|
@ -5,12 +5,12 @@ const nextConfig = {
|
||||
name: 'Kasm Technologies',
|
||||
description: 'The official store for Kasm supported applications.',
|
||||
icon: '/img/logo.svg',
|
||||
listUrl: 'https://registry.kasmweb.com/list.json',
|
||||
listUrl: 'https://registry.kasmweb.com/1.0/list.json',
|
||||
contactUrl: 'https://kasmweb.com/support',
|
||||
},
|
||||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
basePath: '/kasm-apps',
|
||||
basePath: '/kasm-apps/1.0',
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
|
1
site/package-lock.json
generated
1
site/package-lock.json
generated
@ -5,7 +5,6 @@
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "site",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"file-saver": "^2.0.5",
|
||||
|
@ -1179,7 +1179,7 @@ eslint-plugin-react@^7.31.7:
|
||||
array.prototype.flatmap "^1.3.0"
|
||||
doctrine "^2.1.0"
|
||||
estraverse "^5.3.0"
|
||||
jsx-ast-utils "^2.4.1 || ^3.0.0"
|
||||
jsx-ast-utils "^2.4.1||^3.0.0"
|
||||
minimatch "^3.1.2"
|
||||
object.entries "^1.1.5"
|
||||
object.fromentries "^2.0.5"
|
||||
@ -1842,7 +1842,7 @@ loose-envify@^1.1.0, loose-envify@^1.4.0:
|
||||
resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz"
|
||||
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
|
||||
dependencies:
|
||||
js-tokens "^3.0.0 || ^4.0.0"
|
||||
js-tokens "^3.0.0||^4.0.0"
|
||||
|
||||
lru-cache@^6.0.0:
|
||||
version "6.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user