mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed publishing workflow
This commit is contained in:
40
.github/workflows/publish.yml
vendored
40
.github/workflows/publish.yml
vendored
@@ -28,31 +28,31 @@ env:
|
|||||||
PYTHON_VERSION: 3.x
|
PYTHON_VERSION: 3.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# publish_pypi:
|
publish_pypi:
|
||||||
# name: Build and push Python package
|
name: Build and push Python package
|
||||||
# if: github.event.pull_request.head.repo.fork == false
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
|
|
||||||
# - name: Checkout repository
|
- name: Checkout repository
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# - name: Set up Python runtime
|
- name: Set up Python runtime
|
||||||
# uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
# with:
|
with:
|
||||||
# python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
# - name: Set up Python dependencies
|
- name: Set up Python dependencies
|
||||||
# run: pip install --upgrade setuptools wheel twine
|
run: pip install --upgrade setuptools wheel twine
|
||||||
|
|
||||||
# - name: Build Python package
|
- name: Build Python package
|
||||||
# run: python setup.py build sdist bdist_wheel --universal
|
run: python setup.py build sdist bdist_wheel --universal
|
||||||
|
|
||||||
# - name: Publish Python package
|
- name: Publish Python package
|
||||||
# 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 --disable-progress-bar -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
|
run: twine upload --disable-progress-bar -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
|
||||||
|
|
||||||
publish_docker:
|
publish_docker:
|
||||||
name: Build and push Docker image
|
name: Build and push Docker image
|
||||||
|
|||||||
Reference in New Issue
Block a user