This repository was archived by the owner on Sep 17, 2026. It is now read-only.
Repository navigation
71 lines (69 loc) · 2.86 KB
/
Copy pathcode.deploy.dev.yml
File metadata and controls
71 lines (69 loc) · 2.86 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Deploy Dev Environment
on:
push:
branches: [ "main", "develop", "release/**" ]
permissions:
id-token: write
contents: read
jobs:
CheckPendingWorkflow:
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-workflow-queue@542658b3a8270cac81ae15d401b0d974732808ac # v1
with:
delay: 300000
timeout: 7200000
DeployLISA:
needs: CheckPendingWorkflow
environment: dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@6e631f05b2a5f53c9f1e27150d5e8af2f907b03b # v4
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/${{ vars.ROLE_NAME_TO_ASSUME }}
role-session-name: GitHub_to_AWS_via_FederatedOIDC
role-duration-seconds: 14400
- name: Create config-custom.yaml
id: create-yaml
run: |
echo "${{vars.CONFIG_YAML}}" > config-custom.yaml
- name: Set up Python 3.13
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
with:
python-version: "3.13"
- name: Use Node.js 24.x
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v4
with:
node-version: 24.x
- name: Install dependencies
run: |
npm ci
pip install -r requirements-dev.txt
pip install -e ./lisa-sdk
pip install -e lib/serve/mcp-workbench
- name: Deploy LISA
run: |
npm run deploy
env:
HEADLESS: "true"
SKIP_INSTALL: "true"
SendSlackNotification:
name: Send Slack Notification
needs: [ DeployLISA ]
runs-on: ubuntu-latest
if: always()
steps:
- name: Send Notification that Dev Deploy Finished
uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_COLOR: ${{ contains(join(needs.*.result, ' '), 'failure') && 'failure' || 'success' }}
SLACK_TITLE: 'Dev Deploy Finished'
SLACK_FOOTER: ''
MSG_MINIMAL: 'actions url,commit'
SLACK_MESSAGE_ON_FAILURE: '<!here> Dev Deploy FAILED on branch ${{ github.head_ref || github.ref_name }} for <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|commit>'
SLACK_MESSAGE_ON_SUCCESS: 'Dev Deploy SUCCESS on branch ${{ github.head_ref || github.ref_name }} for <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|commit>.'
SLACK_MESSAGE: 'Dev Deploy Finished with status ${{ job.status }} on branch ${{ github.head_ref || github.ref_name }} for <${{ github.event.pull_request.html_url || github.event.head_commit.url }}|commit>'