Skip to content

Add staging deployment action #1

Add staging deployment action

Add staging deployment action #1

name: Deploy to staging
# on:
# release:
# types: [published]
on:
push:
branches: [ "staging-deploy" ]
jobs:
deploy-static:
runs-on: ubuntu-latest
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 Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- 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