您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233
  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. make POEDITOR_API_ACCESS="${POEDITOR_API_ACCESS}" POEDITOR_PROJECT_ID="306433" build
  31. twine upload dist/*