mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Temporarily disabled publish job for branch
This commit is contained in:
84
.github/workflows/ci.yml
vendored
84
.github/workflows/ci.yml
vendored
@@ -116,54 +116,54 @@ jobs:
|
|||||||
mkdocs gh-deploy --force
|
mkdocs gh-deploy --force
|
||||||
mkdocs --version
|
mkdocs --version
|
||||||
|
|
||||||
# Publish Python package and Docker image
|
# # Publish Python package and Docker image
|
||||||
publish:
|
# publish:
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
# if: startsWith(github.ref, 'refs/tags')
|
||||||
needs: build
|
# needs: build
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
|
|
||||||
# Limit clone depth to speed up build
|
# # Limit clone depth to speed up build
|
||||||
- uses: actions/checkout@v1
|
# - uses: actions/checkout@v1
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 5
|
# fetch-depth: 5
|
||||||
|
|
||||||
# Ensure latest build if repository is not up-to-date
|
# # Ensure latest build if repository is not up-to-date
|
||||||
- run: rm -rf material
|
# - run: rm -rf material
|
||||||
|
|
||||||
# Download distribution files
|
# # Download distribution files
|
||||||
- uses: actions/download-artifact@v1
|
# - uses: actions/download-artifact@v1
|
||||||
with:
|
# with:
|
||||||
name: material
|
# name: material
|
||||||
|
|
||||||
# Install Python runtime and dependencies
|
# # Install Python runtime and dependencies
|
||||||
- uses: actions/setup-python@v1
|
# - uses: actions/setup-python@v1
|
||||||
with:
|
# with:
|
||||||
python-version: 3.x
|
# python-version: 3.x
|
||||||
|
|
||||||
- run: pip install --upgrade setuptools wheel twine
|
# - run: pip install --upgrade setuptools wheel twine
|
||||||
|
|
||||||
# Build and test Docker image
|
# # Build and test Docker image
|
||||||
- run: |
|
# - run: |
|
||||||
docker build -t ${GITHUB_REPOSITORY} .
|
# docker build -t ${GITHUB_REPOSITORY} .
|
||||||
docker run --rm -i -v $(pwd):/docs ${GITHUB_REPOSITORY} \
|
# docker run --rm -i -v $(pwd):/docs ${GITHUB_REPOSITORY} \
|
||||||
build --theme material
|
# build --theme material
|
||||||
|
|
||||||
# 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 release to PyPI
|
||||||
- env:
|
# - env:
|
||||||
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
# PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
# PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
|
# run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
|
||||||
|
|
||||||
# Push image to Docker Hub
|
# # Push image to Docker Hub
|
||||||
- env:
|
# - env:
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
run: |
|
# run: |
|
||||||
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
|
# docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
|
||||||
docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/}
|
# docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/}
|
||||||
docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:latest
|
# docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:latest
|
||||||
docker push ${GITHUB_REPOSITORY}
|
# docker push ${GITHUB_REPOSITORY}
|
||||||
|
|||||||
Reference in New Issue
Block a user