From 526447535424b91b84fbe49f1a0bf4120fdf8105 Mon Sep 17 00:00:00 2001 From: "sur.la.route" <17788706+christopherpickering@users.noreply.github.com> Date: Fri, 16 Dec 2022 15:44:27 -0600 Subject: [PATCH] Update demo.yml --- .github/workflows/demo.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 6bb5efd..ca1517a 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -7,11 +7,10 @@ on: jobs: django: - name: format_django + name: format_django runs-on: ubuntu-latest steps: - - name: install deps - - name: Checkout + - name: checkout uses: actions/checkout@v3 - name: setup python 3.10 @@ -25,29 +24,29 @@ jobs: - name: install run: | poetry install + - name: get source run: | mkdir {django_raw, django_source, django_djlint} cd django_raw; git clone --depth 1 https://github.com/django/django .; cd .. find django_raw -iname '*.html*' -exec mv '{}' django_source/ \; cp -r -a django_source django_djlint - + - name: format run: | cd src poetry run python -m djlint ../django_djlint --profile=django --reformat - + - name: publish source uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./django_source publish_branch: django-source - + - name: publish foramtted uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./django_djlint publish_branch: django-djlint -