25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
571 B

  1. name: cli-publish
  2. on:
  3. workflow_run:
  4. workflows:
  5. - "cli-test"
  6. branches:
  7. - main
  8. types:
  9. - completed
  10. jobs:
  11. publish:
  12. if: ${{ github.event.workflow_run.conclusion == 'success' }}
  13. runs-on: ubuntu-18.04
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: actions/setup-python@v2
  17. with:
  18. python-version: "3.6"
  19. - run: |
  20. cd cli
  21. ./deploy
  22. continue-on-error: true
  23. env:
  24. TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
  25. TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}