github-release.yml 607 B

12345678910111213141516171819202122232425262728
  1. name: Create GitHub release
  2. on:
  3. push:
  4. tags:
  5. - '*.*.*'
  6. jobs:
  7. release:
  8. if: github.event.base_ref == 'refs/heads/master'
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout code
  12. uses: actions/checkout@v2
  13. with:
  14. fetch-depth: '0'
  15. - name: Create Release
  16. id: create_release
  17. uses: actions/create-release@v1
  18. env:
  19. GITHUB_TOKEN: ${{ secrets.GH_TOKEN_RAINLOOP }}
  20. with:
  21. tag_name: ${{ github.ref }}
  22. release_name: ${{ github.ref }}
  23. body: ""
  24. draft: false
  25. prerelease: false