From 7cfa80935ea71dc79317cedebb82ed4a50a43038 Mon Sep 17 00:00:00 2001 From: Mumtahin Farabi Date: Tue, 6 Aug 2024 03:21:39 -0400 Subject: [PATCH] ci(build): create pipeline --- .github/workflows/BUILD.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/BUILD.yml diff --git a/.github/workflows/BUILD.yml b/.github/workflows/BUILD.yml new file mode 100644 index 0000000..f1e7295 --- /dev/null +++ b/.github/workflows/BUILD.yml @@ -0,0 +1,39 @@ +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 Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: 📂 Install Dependencies + run: bun install + + - 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: bun run --bun build + + - name: 💰 Profit + run: echo 🐞