Skip to content

Commit

Permalink
Add deployment to legislation parameters viewer (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
eraviart committed Oct 21, 2024
1 parent dd71b91 commit a1385db
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/tax-benefit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,36 @@ jobs:
parameters_path: "openfisca_tunisia/parameters"
secrets:
token: ${{ secrets.CONTROL_CENTER_TOKEN }}
deploy:

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"
Expand Down

0 comments on commit a1385db

Please sign in to comment.