Skip to content

Commit

Permalink
ci(build): create pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Aug 6, 2024
1 parent 73acd1b commit 04c5cf7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/BUILD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build

on:
push:
branches: '*'
pull_request:
branches: '*'

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- name: πŸ›ŽοΈ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for branches and tags

- name: πŸ“¦ Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: πŸ› οΈ Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
cache: pnpm

- name: πŸ“‚ Install Dependencies
run: pnpm i

- name: πŸ—οΈ Build Project
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
run: pnpm build

- name: πŸ’° Profit
run: echo 🐞

0 comments on commit 04c5cf7

Please sign in to comment.