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.
 
 
 
 

37 lines
987 B

  1. name: Release Application
  2. on:
  3. release:
  4. types: [created]
  5. jobs:
  6. pip:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v1
  10. - name: Set up Python
  11. uses: actions/setup-python@v1
  12. with:
  13. python-version: '3.7'
  14. - name: Setup environment
  15. run: |
  16. sudo apt update
  17. sudo apt install ruby
  18. sudo gem install ronn
  19. - name: Install dependencies
  20. run: |
  21. python -m pip install --upgrade pip
  22. pip install setuptools wheel twine skyfield numpy tabulate Babel requests
  23. - name: Build and publish
  24. env:
  25. TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
  26. TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
  27. POEDITOR_API_ACCESS: ${{ secrets.POEDITOR_API_ACCESS }}
  28. POEDITOR_PROJECT_ID: 306433
  29. run: |
  30. cd manpage && ronn kosmorro.md && cd ..
  31. python .scripts/build/getlangs.py
  32. python setup.py compile_catalog sdist bdist_wheel
  33. twine upload dist/*