9
9
branches : [ "staging-deploy" ]
10
10
11
11
jobs :
12
- deploy-static :
12
+ deploy :
13
13
14
14
permissions :
15
15
contents : ' read'
@@ -19,37 +19,39 @@ jobs:
19
19
20
20
steps :
21
21
- uses : actions/checkout@v4
22
- # - name: Set up Node.js
23
- # uses: actions/setup-node@v4
24
- # with:
25
- # node-version: '14.x'
26
- # - run: |
27
- # npm install
28
- # npm install -g gulp
29
- # npm rebuild node-sass
30
- # gulp build
31
- # working-directory: ubyssey/static_src
22
+
23
+ - name : Set up Node.js
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ' 14.x'
27
+
28
+ - run : |
29
+ npm install
30
+ npm install -g gulp
31
+ npm rebuild node-sass
32
+ gulp build
33
+ working-directory: ubyssey/static_src
32
34
33
- # - name: Set up Python
34
- # uses: actions/setup-python@v5
35
- # with:
36
- # python-version: '3.9'
35
+ - name : Set up Python
36
+ uses : actions/setup-python@v5
37
+ with :
38
+ python-version : ' 3.9'
37
39
38
- # - name: Install Python dependencies
39
- # run: python -m pip install -r requirements.txt
40
+ - name : Install Python dependencies
41
+ run : python -m pip install -r requirements.txt
40
42
41
- # - name: Collect Django static files
42
- # run: DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput
43
+ - name : Collect Django static files
44
+ run : DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput
43
45
44
46
- uses : ' google-github-actions/auth@v2'
45
47
with :
46
48
workload_identity_provider : ' projects/1012602718138/locations/global/workloadIdentityPools/ubyssey-wif-pool-staging/providers/ubyssey-oidc-github-staging'
47
49
service_account : ' deployment@ubyssey-staging.iam.gserviceaccount.com'
48
50
49
- # - uses: 'google-github-actions/upload-cloud-storage@v2'
50
- # with:
51
- # path: 'static'
52
- # destination: 'ubyssey-staging'
51
+ - uses : ' google-github-actions/upload-cloud-storage@v2'
52
+ with :
53
+ path : ' static'
54
+ destination : ' ubyssey-staging'
53
55
54
56
- name : Configure SSH
55
57
run : |
0 commit comments