Update demo.yml

This commit is contained in:
sur.la.route 2022-12-19 08:47:06 -06:00 committed by GitHub
parent acc70ac187
commit e08050c902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,16 +27,12 @@ jobs:
- name: get source
run: |
mkdir django_raw; mkdir django_source; mkdir django_djlint
mkdir django_raw; mkdir django_source
#; mkdir 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 --warn --quiet
# cp -r -a django_source/* django_djlint/
- name: publish source
uses: peaceiris/actions-gh-pages@v3
with:
@ -44,11 +40,34 @@ jobs:
publish_dir: ./django_source
publish_branch: django-source
enable_jekyll: true
- name: cleanup
run: rm -r django_source; rm -r django_raw
- name: publish foramtted
uses: peaceiris/actions-gh-pages@v3
- uses: actions/checkout@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./django_djlint
publish_branch: django-djlint
enable_jekyll: true
path: django-source
- name: format
run: |
cd django-source
git fetch
git checkout django-source --force
git push --set-upstream origin django-djlint --force
- name: format
run: |
cd src
poetry run python -m djlint ../django-source --profile=django --reformat --warn --quiet
- name: publish foramtted
run: |
git add .
git commit -m "formatted"
git push
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./django_djlint
# publish_branch: django-djlint
# enable_jekyll: true