Skip to content

Commit

Permalink
Status Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmalhk7 committed Apr 13, 2021
1 parent c531c4c commit 0cc119c
Show file tree
Hide file tree
Showing 4 changed files with 10,594 additions and 10,789 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# IET NITK Strapi

28 changes: 18 additions & 10 deletions config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
module.exports = ({ env }) => {
if (env("NODE_ENV") === "production") {
return {
upload: {
provider: 'cloudinary',
const plugins = {
"github-publish": {
owner: "IET-NITK", // The gothub organisation or user
repo: "IET-NITK.github.io", // The name of the repository
workflow_id: "deploy.yml", // The workflow_id or filename
token: env("GITHUB_TOKEN"), // The GitHub personal access token with access to trigger workflows and view build status
branch: "daddy", // The branch the workflow should be triggered on
},
};
if (env("NODE_ENV") === "production") {
plugins["upload"]={
provider: "cloudinary",
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
}
cloud_name: env("CLOUDINARY_NAME"),
api_key: env("CLOUDINARY_KEY"),
api_secret: env("CLOUDINARY_SECRET"),
},
}
}
}
};
return plugins
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
"strapi": "3.5.4",
"strapi-admin": "3.5.4",
"strapi-connector-bookshelf": "3.5.4",
"strapi-plugin-comments": "^1.0.1-beta.7",
"strapi-plugin-content-manager": "3.5.4",
"strapi-plugin-content-type-builder": "3.5.4",
"strapi-plugin-documentation": "3.5.4",
"strapi-plugin-email": "3.5.4",
"strapi-plugin-github-publish": "^0.0.5",
"strapi-plugin-graphql": "3.5.4",
"strapi-plugin-upload": "3.5.4",
"strapi-plugin-users-permissions": "3.5.4",
Expand All @@ -33,7 +35,6 @@
},
"strapi": {},
"engines": {
"npm": ">=10.16.0 <=14.x.x",
"npm": "^6.0.0"
},
"license": "MIT"
Expand Down
Loading

0 comments on commit 0cc119c

Please sign in to comment.