diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml new file mode 100644 index 000000000..2cb8c1f44 --- /dev/null +++ b/.github/workflows/deploy-staging.yml @@ -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 diff --git a/ubyssey-dev b/ubyssey-dev index 548bc6e27..5abcb8380 160000 --- a/ubyssey-dev +++ b/ubyssey-dev @@ -1 +1 @@ -Subproject commit 548bc6e27bdc40b5771874e20410cd53ca505550 +Subproject commit 5abcb838020d41f43c2114171d2e92ee8daf91bc