Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

33 linhas
873 B

  1. name: Generate Semantic Release and publish on PyPI
  2. on:
  3. push:
  4. branches:
  5. - v5.x
  6. jobs:
  7. release:
  8. name: Release
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. with:
  13. fetch-depth: 0
  14. - uses: actions/setup-node@v2
  15. with:
  16. node-version: 14
  17. - uses: actions/setup-python@v4
  18. with:
  19. python-version: '3.x'
  20. - name: Setup dependencies
  21. run: |
  22. npm install @semantic-release/git @semantic-release/exec --no-save
  23. python3 -m pip install wheel twine
  24. python3 -m pip install git+https://github.com/pypa/hatch
  25. - name: Create Release
  26. env:
  27. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  28. PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
  29. PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
  30. run: npx semantic-release