Skip to content

Commit

Permalink
Uncomment missing deployment steps
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Dec 3, 2024
1 parent 9429a97 commit f22daa4
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches: [ "staging-deploy" ]

jobs:
deploy-static:
deploy:

permissions:
contents: 'read'
Expand All @@ -19,37 +19,39 @@ jobs:

steps:
- uses: actions/checkout@v4
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '14.x'
# - run: |
# npm install
# npm install -g gulp
# npm rebuild node-sass
# gulp build
# working-directory: ubyssey/static_src

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '14.x'

- run: |
npm install
npm install -g gulp
npm rebuild node-sass
gulp build
working-directory: ubyssey/static_src
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.9'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

# - name: Install Python dependencies
# run: python -m pip install -r requirements.txt
- name: Install Python dependencies
run: python -m pip install -r requirements.txt

# - name: Collect Django static files
# run: DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput
- name: Collect Django static files
run: DJANGO_SETTINGS_MODULE=config.settings.base python manage.py collectstatic --noinput

- uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/1012602718138/locations/global/workloadIdentityPools/ubyssey-wif-pool-staging/providers/ubyssey-oidc-github-staging'
service_account: '[email protected]'

# - uses: 'google-github-actions/upload-cloud-storage@v2'
# with:
# path: 'static'
# destination: 'ubyssey-staging'
- uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: 'static'
destination: 'ubyssey-staging'

- name: Configure SSH
run: |
Expand Down

0 comments on commit f22daa4

Please sign in to comment.