-
Notifications
You must be signed in to change notification settings - Fork 45
39 lines (38 loc) · 1.13 KB
/
cli-deploy.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
29
30
31
32
33
34
35
36
37
38
39
name: "Deploy to Hosted services"
on:
workflow_dispatch:
inputs:
directory:
description: 'Dictionary directory name'
required: true
type: string
projectYAML:
description: 'project.yaml'
required: false
type: string
projectName:
description: 'Project name'
required: true
type: string
jobs:
deploy:
name: CLI Deploy
runs-on: ubuntu-latest
environment:
name: DEPLOYMENT
env:
SUBQL_ACCESS_TOKEN: ${{ secrets.SUBQL_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
- run: yarn
working-directory: ./${{github.event.inputs.directory}}
- name: Codegen
working-directory: ./${{github.event.inputs.directory}}
run: yarn codegen
- name: Publish and Deploy
run: |
sh .github/workflows/scripts/publish-deploy.sh -f ${{ github.event.inputs.directory }} -o ${{github.repository}} -r ${{github.workspace}} -p ${{github.event.inputs.projectName}} -y ${{ github.event.inputs.projectYAML }}