From 5f9b7f1dc905a7d6a5b5b69f7cbf84e2cd3e8012 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 14 Nov 2024 09:11:17 +0000 Subject: [PATCH] use backend workflow --- .github/workflows/main.yaml | 39 ++----------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e0bd638..0bfe48a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -6,41 +6,6 @@ on: workflow_dispatch: jobs: - # main: - # uses: ocadotechnology/codeforlife-workspace/.github/workflows/backend.yaml@main - # secrets: inherit - - build: - runs-on: ubuntu-latest - # Build if: - # - the repo's owner is Ocado Tech. - # - the repo is not the backend template. - # - a change is made to the default branch. - if: | - github.repository_owner_id == 2088731 && - github.repository_id != 610204172 && - github.ref_name == github.event.repository.default_branch - steps: - - name: 🐍 Set up Python 3.12 Environment - uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main - with: - python-version: 3.12 - - - name: 🏗️ Generate requirements.txt - run: pipenv requirements > requirements.txt - - - name: 🏗️ Collect Static Files - run: pipenv run python ./manage.py collectstatic --noinput --clear - - - name: 📤 Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: build - path: | - requirements.txt - static/ - - release: - needs: [build] - uses: ocadotechnology/codeforlife-workspace/.github/workflows/release.yaml@main + main: + uses: ocadotechnology/codeforlife-workspace/.github/workflows/backend.yaml@main secrets: inherit