mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Optimized GitHub workflow
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Limit clone depth to speed up build
|
# Checkout source form GitHub
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# Install Node runtime and dependencies
|
# Install Node runtime and dependencies
|
||||||
@@ -48,8 +48,10 @@ jobs:
|
|||||||
- if: steps.cache-node.outputs.cache-hit != 'true'
|
- if: steps.cache-node.outputs.cache-hit != 'true'
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
# Run linter and build distribution files
|
# Run linter
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
|
|
||||||
|
# Build distribution files
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|
||||||
# Check diff after build
|
# Check diff after build
|
||||||
@@ -61,7 +63,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Limit clone depth to speed up build
|
# Checkout source form GitHub
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# Install Python runtime and dependencies
|
# Install Python runtime and dependencies
|
||||||
@@ -110,7 +112,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Limit clone depth to speed up build
|
# Checkout source form GitHub
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# Install Node runtime and dependencies
|
# Install Node runtime and dependencies
|
||||||
@@ -146,7 +148,7 @@ jobs:
|
|||||||
# Build Python package
|
# Build Python package
|
||||||
- run: python setup.py build sdist bdist_wheel --universal
|
- run: python setup.py build sdist bdist_wheel --universal
|
||||||
|
|
||||||
# Push release to PyPI
|
# Push package to PyPI
|
||||||
- env:
|
- env:
|
||||||
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
|
|||||||
Reference in New Issue
Block a user