Merge branch 'main' of https://github.com/PuneethReddyHC/nextjs-boile… #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pipeline | |
on: | |
push: | |
branches: | |
- main # Adjust the branch name as needed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 # Replace with the desired Node.js version | |
- name: Install dependencies and build | |
run: | | |
npm install | |
npm run build | |
- name: Archive build artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build-artifacts | |
path: build # Change this to the directory containing your build output |