-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.02 KB
/
ci_auth_artifact.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
name: Auth function artifact
on:
push:
branches:
- "main"
paths:
- "server/**"
pull_request:
branches:
- "main"
paths:
- "server/**"
jobs:
auth-function-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Auth function zip
run: |
mkdir auth_function_packaging
rsync -r server/auth_function/* auth_function_packaging -F --exclude=requirements.txt --exclude=test --exclude=requirements-dev.txt
pip install -t auth_function_packaging -r server/auth_function/requirements.txt -r server/auth_function/requirements-dev.txt
cd auth_function_packaging
zip -r9 ../infrastructure/server/fam_auth_function.zip .
cd ..
rm -rf auth_function_packaging
- name: Auth function upload zip file artifact
uses: actions/upload-artifact@v3
with:
name: fam-auth-function-zip
path: ./infrastructure/server/fam_auth_function.zip
if-no-files-found: error