mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-22 06:30:53 +03:00
Update publishing GA job
This commit is contained in:
parent
3498ed9a90
commit
5fc0097021
58
.github/workflows/publishing.yml
vendored
58
.github/workflows/publishing.yml
vendored
|
@ -1,11 +1,9 @@
|
||||||
name: Publishing
|
name: Publishing
|
||||||
|
|
||||||
#on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# tags:
|
tags:
|
||||||
# - '*'
|
- '*'
|
||||||
|
|
||||||
on: [push, pull_request, workflow_dispatch]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -101,27 +99,29 @@ jobs:
|
||||||
- uses: pypa/gh-action-pypi-publish@master
|
- uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
user: __token__
|
user: __token__
|
||||||
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
repository_url: https://test.pypi.org/legacy/
|
# For publishing to Test PyPI, uncomment next two lines:
|
||||||
|
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||||
|
# repository_url: https://test.pypi.org/legacy/
|
||||||
|
|
||||||
# publish-docs:
|
publish-docs:
|
||||||
# name: Publish docs
|
name: Publish docs
|
||||||
# needs: [publish]
|
needs: [publish]
|
||||||
# runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
# with:
|
with:
|
||||||
# python-version: "3.10"
|
python-version: "3.10"
|
||||||
# - run: pip install -r requirements-doc.txt
|
- run: pip install -r requirements-doc.txt
|
||||||
# - run: pip install awscli
|
- run: pip install awscli
|
||||||
# - run: pip install -e .
|
- run: pip install -e .
|
||||||
# - run: (cd docs && make clean html)
|
- run: (cd docs && make clean html)
|
||||||
# - run: |
|
- run: |
|
||||||
# aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete
|
aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete
|
||||||
# aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --path "/*" > /dev/null
|
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --path "/*" > /dev/null
|
||||||
# echo "Cache invalidation triggered"
|
echo "Cache invalidation triggered"
|
||||||
# env:
|
env:
|
||||||
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
# AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user