-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73acd1b
commit 04c5cf7
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
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 π |