|
|
|
@ -18,10 +18,28 @@ permissions:
|
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
pre-commit:
|
|
|
|
|
name: Linting Checks
|
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
steps:
|
|
|
|
|
-
|
|
|
|
|
name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
-
|
|
|
|
|
name: Install python
|
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
|
with:
|
|
|
|
|
python-version: 3.x
|
|
|
|
|
-
|
|
|
|
|
name: Check files
|
|
|
|
|
uses: pre-commit/action@v3.0.0
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
name: Test Build
|
|
|
|
|
if: github.repository == 'gethomepage/homepage' && github.event_name == 'pull_request'
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs:
|
|
|
|
|
- pre-commit
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
@ -43,6 +61,8 @@ jobs:
|
|
|
|
|
name: Build & Deploy
|
|
|
|
|
if: github.repository == 'gethomepage/homepage' && github.event_name != 'pull_request'
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs:
|
|
|
|
|
- pre-commit
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
with:
|
|
|
|
|