Skip to content

Commit f22daa4

Browse files
committed
Uncomment missing deployment steps
1 parent 9429a97 commit f22daa4

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches: [ "staging-deploy" ]
1010

1111
jobs:
12-
deploy-static:
12+
deploy:
1313

1414
permissions:
1515
contents: 'read'
@@ -19,37 +19,39 @@ jobs:
1919

2020
steps:
2121
- 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
3234
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'
3739

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
4042

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
4345

4446
- uses: 'google-github-actions/auth@v2'
4547
with:
4648
workload_identity_provider: 'projects/1012602718138/locations/global/workloadIdentityPools/ubyssey-wif-pool-staging/providers/ubyssey-oidc-github-staging'
4749
service_account: 'deployment@ubyssey-staging.iam.gserviceaccount.com'
4850

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'
5355

5456
- name: Configure SSH
5557
run: |

0 commit comments

Comments
 (0)