diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..8856e0f --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,42 @@ +name: Build and Deploy + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: 18 + - name: install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm i + + - name: Build the Next.js app + run: pnpm run build + + - name: Deploy to mbsa branch + run: | + git config --global user.email "mbsaiaditya@gmail.com" + git config --global user.name "MBSA-INFINITY" + git checkout --orphan mbsa + ls + rm -rf node_modules + git add -f out + cp -r out/. . + git add . + git commit -m "Deploy to mbsa branch" + git push --force origin mbsa + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f322f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/404.html b/404.html new file mode 100644 index 0000000..d6553ee --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +