Skip to content

Commit

Permalink
Add staging deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Dec 3, 2024
1 parent 12dc115 commit 05f8ad9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
2 changes: 1 addition & 1 deletion ubyssey-dev
Submodule ubyssey-dev updated from 548bc6 to 5abcb8

0 comments on commit 05f8ad9

Please sign in to comment.