File tree Expand file tree Collapse file tree 4 files changed +48
-5
lines changed Expand file tree Collapse file tree 4 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 44# run this script locally only from root
55# bash .github/job.sh
66
7- echo " MONGODB_URI=mongodb+srv://techous:[email protected] /myFirstDatabase?retryWrites=true&w=majority" > .env
8- echo " RATE_LIMIT_MINUTES=1" >> .env
9- echo " RATE_LIMIT_MAX_REQUEST=10" >> .env
10- echo " CACHE_STORAGE_SECONDS=30" >> .env
7+ # echo "MONGODB_URI=mongodb+srv://techous:[email protected] /myFirstDatabase?retryWrites=true&w=majority" > .env8+ # echo "RATE_LIMIT_MINUTES=1" >> .env
9+ # echo "RATE_LIMIT_MAX_REQUEST=10" >> .env
10+ # echo "CACHE_STORAGE_SECONDS=30" >> .env
1111
1212git clone " https://github.com/TechOUs/HacktoberFest21Community.git"
1313
Original file line number Diff line number Diff line change 1+ name : Vercel Deployment
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+ push :
7+ branches :
8+ - master
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-node@v2
15+ with :
16+ node-version : ' 14.x'
17+ - run : yarn install
18+ - run : yarn run test
19+ env :
20+ MONGODB_URI : ${{ secrets.MONGODB_URI }}
21+ RATE_LIMIT_MINUTES : ${{ secrets.RATE_LIMIT_MINUTES }}
22+ RATE_LIMIT_MAX_REQUEST : ${{ secrets.RATE_LIMIT_MAX_REQUEST }}
23+ CACHE_STORAGE_SECONDS : ${{ secrets.CACHE_STORAGE_SECONDS }}
24+ deploy :
25+ needs : test
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@v2
29+ - uses : amondnet/vercel-action@v20
30+ with :
31+ vercel-token : ${{ secrets.VERCEL_TOKEN }} # Required
32+ vercel-args : ' --prod' # Optional
33+ vercel-org-id : ${{ secrets.ORG_ID}} # Required
34+ vercel-project-id : ${{ secrets.PROJECT_ID}} # Required
35+ working-directory : .
Original file line number Diff line number Diff line change 1111 with :
1212 node-version : ' 14.x'
1313 - run : npm install
14- - run : bash .github/job.sh
14+ - run : bash .github/job.sh
15+ env :
16+ MONGODB_URI : ${{ secrets.MONGODB_URI }}
17+ RATE_LIMIT_MINUTES : ${{ secrets.RATE_LIMIT_MINUTES }}
18+ RATE_LIMIT_MAX_REQUEST : ${{ secrets.RATE_LIMIT_MAX_REQUEST }}
19+ CACHE_STORAGE_SECONDS : ${{ secrets.CACHE_STORAGE_SECONDS }}
Original file line number Diff line number Diff line change 11{
22 "version" : 2 ,
3+ "github" : {
4+ "enabled" : false
5+ },
36 "builds" :[
47 {
58 "src" : " ./bin/www" ,
You can’t perform that action at this time.
0 commit comments