Updates for versioning support
This commit is contained in:
parent
6212e8977b
commit
c1c856a858
3
.github/workflows/build-and-deploy.yml
vendored
3
.github/workflows/build-and-deploy.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Node.js CI
|
||||
name: Build 1.0
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -29,3 +29,4 @@ jobs:
|
||||
with:
|
||||
branch: gh-pages
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user