mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-25 07:24:45 +00:00
Update demo.yml
This commit is contained in:
parent
acc70ac187
commit
e08050c902
1 changed files with 33 additions and 14 deletions
47
.github/workflows/demo.yml
vendored
47
.github/workflows/demo.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue