-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (43 loc) · 1.4 KB
/
tax-benefit.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
name: Validate, integrate & deploy to tax-benefit.org
on:
- push
- workflow_dispatch
jobs:
validate_yaml:
uses: tax-benefit/actions/.github/workflows/[email protected]
with:
parameters_path: "openfisca_tunisia/parameters"
secrets:
token: ${{ secrets.CONTROL_CENTER_TOKEN }}
deploy_parameters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
github-server-url: https://git.leximpact.dev/leximpact
path: legislation-parameters-explorer
repository: leximpact/legislation-parameters-explorer
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install npm dependencies
run: npm install
- name: Run build task
run: npm run build --if-present
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "dist/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: "/dist/, /node_modules/"
deploy_simulator:
uses: tax-benefit/actions/.github/workflows/[email protected]
with:
python_package: "openfisca_tunisia"
secrets:
token: ${{ secrets.CONTROL_CENTER_TOKEN }}