Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ jobs:
- uses: KengoTODA/actions-setup-docker-compose@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Login in Github Container registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
registry: ghcr.io/ansys-internal
username: pyansys-ci-bot
password: ${{ secrets.PYANSYS_CI_BOT_PACKAGE_TOKEN }}
password: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

- name: Start services
run: |
Expand Down Expand Up @@ -147,14 +147,14 @@ jobs:
python -m pip install -r requirements/requirements_build.txt
python -m build venv wheel
python -m twine check dist/*
- name: Upload to private PyPi
if: github.ref == 'refs/heads/main'
run: |
python -m twine upload --verbose --skip-existing dist/*.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
#- name: Upload to private PyPi
# if: github.ref == 'refs/heads/main'
# run: |
# python -m twine upload --verbose --skip-existing dist/*.whl
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
# TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand All @@ -175,4 +175,4 @@ jobs:
generate_release_notes: true
# files: |
# dist/*.whl
# build/sphinx/html
# build/sphinx/html