mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-30 16:27:11 -05:00
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:
45
.github/workflows/deploy.yml
vendored
45
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user