-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.34 KB
/
test.yml
File metadata and controls
39 lines (39 loc) · 1.34 KB
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
29
30
31
32
33
34
35
36
37
38
39
name: My First GitHub Action
on: [push]
jobs:
buildApp:
runs-on: ubuntu-latest
outputs:
text: ${{ steps.finish.outputs.text }}
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with :
node-version: '14.17.0'
- name: Install node_modules
run: yarn
- name: Build The Project
run: yarn build
- name: Sets The Vercel Env
run: |
cd build
mkdir .vercel
cd .vercel
touch project.json
echo "{\"projectId\":\"$VERCEL_PROJECT_ID\",\"orgId\":\"H6nj7J1Ka9Tf4CpLSxzv2MNI\"}" > project.json
- name: Deploying The Project
run: yarn deploy
- name: Setup Done
id: finish
run: echo "::set-output name=text::hi-build"
test-app:
needs: buildApp
runs-on: ubuntu-latest
env:
MY_JOB_OUTPUT: ${{ needs.buildApp.outputs.text }}
steps:
- run: echo $MY_JOB_OUTPUT