-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.26 KB
/
deploy-dev.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
40
41
42
43
44
45
46
47
48
49
50
name: Deploy Dev
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-dev:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.10
- name: Install poetry
shell: bash
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "/root/.local/bin" >> $GITHUB_PATH
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Install frontend dependencies and build assets
run: |
cd nad_ch/controllers/web
npm install
npm run build
- name: Create requirements.txt
shell: bash
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- name: Deploy to dev environment
uses: 18f/cg-deploy-action@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: ${{ secrets.CF_ORG }}
cf_space: ${{ secrets.CF_SPACE }}
push_arguments: "-f manifest-dev.yml 10x-nad-st-dev"