-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (27 loc) · 1 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build and Commit
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 20
env: # Environment variables from either organization or repository settings page (for GitHub Actions).
TENOR_KEY: ${{ secrets.TENOR_KEY }}
THIRDWEB_CLIENT_ID: ${{ secrets.THIRDWEB_CLIENT_ID }}
IMAGEKIT_ENDPOINT: ${{ secrets.IMAGEKIT_ENDPOINT }}
IMAGEKIT_PUBLIC_KEY: ${{ secrets.IMAGEKIT_PUBLIC_KEY }}
IMAGEKIT_PRIVATE_KEY: ${{ secrets.IMAGEKIT_PRIVATE_KEY }}
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder.
run: |
npm install
npm run generate
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: build # The branch the action should deploy to.
folder: dist # The folder the action should deploy.