From 915a644f565aebdc13ac4e837d9df473a1d1b795 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 27 Sep 2024 15:53:09 +0200 Subject: [PATCH] [#13] refactor after open-api-workflows f59bfa52cc09cd191303d1d8e54360adb80e0ae2 --- .github/workflows/ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86065318..85391193 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,13 +90,12 @@ 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 + setup-node: false + - name: Generate environment variable documentation using OAf and check if it was updated run: | bin/generate_envvar_docs.sh @@ -122,11 +121,19 @@ jobs: uses: maykinmedia/open-api-workflows/.github/workflows/ci.yml@initial-setup needs: - store-reusable-workflow-vars - - tests 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 }}