Workflow to check JS and PY code format (#242)

* fix css files
* create workflow
* format code using prettier
* black ignore 3rd party folder
* format py code using black
* black exclude option in workflow
* Don't format workflow files
* Add contributing instructions to readme
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
Raghavan
2024-02-07 04:55:44 +05:30
committed by GitHub
parent 1c6875f746
commit 228c294ffa
87 changed files with 42300 additions and 30749 deletions

View File

@@ -2,7 +2,7 @@ name: Deploy repository to Github Pages
on:
push:
branches: [ main, stable ]
branches: [main, stable]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -17,27 +17,27 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout main
uses: actions/checkout@v2
with:
path: main
ref: main
fetch-depth: '0'
- run: |
cd main
./build_site.sh ../_site/stable
- name: Checkout dev
uses: actions/checkout@v2
with:
path: dev
# change this ref to whatever dev branch/tag we need when necessary
ref: main
fetch-depth: '0'
- run: |
cd dev
../main/build_site.sh ../_site/develop
- uses: actions/upload-pages-artifact@v2
- name: Checkout main
uses: actions/checkout@v2
with:
path: main
ref: main
fetch-depth: "0"
- run: |
cd main
./build_site.sh ../_site/stable
- name: Checkout dev
uses: actions/checkout@v2
with:
path: dev
# change this ref to whatever dev branch/tag we need when necessary
ref: main
fetch-depth: "0"
- run: |
cd dev
../main/build_site.sh ../_site/develop
- uses: actions/upload-pages-artifact@v2
deploy:
environment:
name: github-pages
@@ -48,4 +48,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2