8
8
jobs :
9
9
setup :
10
10
runs-on : ubuntu-latest
11
- outputs :
12
- python-version : ${{ steps.python-version.outputs.python-version }}
13
11
steps :
14
12
- name : Checkout code
15
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v3
16
14
17
15
- name : Set up Python
18
- id : python-version
19
- uses : actions/setup-python@v2
16
+ uses : actions/setup-python@v4
20
17
with :
21
18
python-version : 3.8
22
19
@@ -25,29 +22,30 @@ jobs:
25
22
python -m venv venv
26
23
venv/bin/python -m pip install --upgrade pip
27
24
venv/bin/pip install exifread
28
- - name : Upload venv
29
- uses : actions/upload-artifact@v2
30
- with :
31
- name : venv
32
- path : venv
33
25
34
26
build :
35
27
runs-on : ubuntu-latest
36
28
needs : setup
37
29
steps :
38
30
- name : Checkout code
39
- uses : actions/checkout@v2
31
+ uses : actions/checkout@v3
40
32
41
- - name : Download venv
42
- uses : actions/download-artifact@v2
33
+ - name : Set up Python
34
+ uses : actions/setup-python@v4
43
35
with :
44
- name : venv
36
+ python-version : 3.8
37
+
38
+ - name : Install dependencies
39
+ run : |
40
+ python -m venv venv
41
+ venv/bin/python -m pip install --upgrade pip
42
+ venv/bin/pip install exifread
45
43
46
44
- name : Build
47
45
run : echo "Building"
48
46
49
47
- name : Save artifacts
50
- uses : actions/upload-artifact@v2
48
+ uses : actions/upload-artifact@v3
51
49
with :
52
50
name : main.py
53
51
path : main.py
@@ -57,15 +55,21 @@ jobs:
57
55
needs : build
58
56
steps :
59
57
- name : Checkout code
60
- uses : actions/checkout@v2
58
+ uses : actions/checkout@v3
61
59
62
- - name : Download venv
63
- uses : actions/download-artifact@v2
60
+ - name : Set up Python
61
+ uses : actions/setup-python@v4
64
62
with :
65
- name : venv
63
+ python-version : 3.8
64
+
65
+ - name : Install dependencies
66
+ run : |
67
+ python -m venv venv
68
+ venv/bin/python -m pip install --upgrade pip
69
+ venv/bin/pip install exifread
66
70
67
71
- name : Download artifacts
68
- uses : actions/download-artifact@v2
72
+ uses : actions/download-artifact@v3
69
73
with :
70
74
name : main.py
71
75
@@ -78,12 +82,18 @@ jobs:
78
82
if : github.ref == 'refs/heads/main'
79
83
steps :
80
84
- name : Checkout code
81
- uses : actions/checkout@v2
85
+ uses : actions/checkout@v3
82
86
83
- - name : Download venv
84
- uses : actions/download-artifact@v2
87
+ - name : Set up Python
88
+ uses : actions/setup-python@v4
85
89
with :
86
- name : venv
90
+ python-version : 3.8
91
+
92
+ - name : Install dependencies
93
+ run : |
94
+ python -m venv venv
95
+ venv/bin/python -m pip install --upgrade pip
96
+ venv/bin/pip install exifread
87
97
88
98
- name : Deploy to production
89
99
run : echo "Deploying to production"
0 commit comments