deployment files

This commit is contained in:
Priyatham-sai-chand 2021-01-11 22:23:46 +05:30
parent ada9bb373a
commit f4a3ee6554
3 changed files with 41 additions and 1 deletions

36
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run export
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.

3
next.config.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = {
assetPrefix: '/Portfolio/',
}

View file

@ -5,7 +5,8 @@
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start" "start": "next start",
"export": "next export"
}, },
"dependencies": { "dependencies": {
"next": "10.0.5", "next": "10.0.5",