You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

release.yml 855 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Release Application
  2. on:
  3. release:
  4. types: [published]
  5. jobs:
  6. pipy:
  7. name: Build and Release to PyPI
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Set up Python
  12. uses: actions/setup-python@v2
  13. with:
  14. python-version: '3.x'
  15. - name: Setup environment
  16. run: |
  17. sudo apt update
  18. sudo apt install ruby
  19. sudo gem install ronn
  20. - name: Install dependencies
  21. run: |
  22. python -m pip install --upgrade pip pipenv setuptools wheel twine
  23. pipenv install
  24. - name: Build package
  25. run: |
  26. make i18n build
  27. - name: Publish to PyPI
  28. env:
  29. TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
  30. TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
  31. run: |
  32. twine upload dist/*