diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..a49e472318 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release + +on: + push: + tags: + - tracing-[0-9]+.* + - tracing-[a-z]+-[0-9]+.* + +jobs: + create-release: + name: Create GitHub release + # only publish from the origin repository + if: github.repository_owner == 'tokio-rs' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: taiki-e/create-gh-release-action@v1.3.0 + with: + prefix: tracing[\-a-z]* + changelog: "$prefix/CHANGELOG.md" + title: "$prefix $version" + branch: v0.1.x + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file