From 91c3f1c359cb440b123bbe453d896b409465a7c2 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 27 Sep 2024 15:42:48 +0200 Subject: [PATCH] [#13] refactor after open-api-workflows f59bfa52cc09cd191303d1d8e54360adb80e0ae2 --- .github/workflows/ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8b9ad8..bcde85f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,13 +96,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Set up backend environment + uses: maykinmedia/setup-django-backend@v1.3 with: python-version: '3.11' - cache: 'pip' - cache-dependency-path: 'requirements/*.txt' - - name: Install dependencies - run: pip install -r requirements/ci.txt + - name: Generate environment variable documentation using OAf and check if it was updated run: | bin/generate_envvar_docs.sh @@ -129,12 +127,20 @@ jobs: open-api-ci: uses: maykinmedia/open-api-workflows/.github/workflows/ci.yml@initial-setup needs: - - tests - store-reusable-workflow-vars with: main-branch: 'master' python-version: '3.11' docker-image-name: ${{ needs.store-reusable-workflow-vars.outputs.image-name }} + + open-api-publish: + uses: maykinmedia/open-api-workflows/.github/workflows/publish.yml@initial-setup + needs: + - store-reusable-workflow-vars + - open-api-ci + - tests + with: + docker-image-name: ${{ needs.store-reusable-workflow-vars.outputs.image-name }} repository-owner: 'maykinmedia' secrets: docker-username: ${{ secrets.DOCKER_USERNAME }}