From 3672145e4b0e4f0a142dbe5bcf42fe6f2f2c6355 Mon Sep 17 00:00:00 2001 From: James Pogran Date: Mon, 4 Apr 2022 09:38:08 -0400 Subject: [PATCH] Add GitHub automatic release (#173) This automatically creates a GitHub release when a matching tag is created in this repository. --- .github/release.yml | 26 ++++++++++++++++++++++++++ .github/workflows/release.yml | 20 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/release.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..4991290 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,26 @@ +changelog: + categories: + - title: NOTES + labels: + - note + - documentation + - title: FEATURES + labels: + - feature + - title: ENHANCEMENTS + labels: + - enhancement + - documentation + - title: BUG FIXES + labels: + - bug + - title: INTERNAL + labels: + - dependencies + - "*" + exclude: + labels: + - duplicate + - wontfix + - question + - invalid diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bd30fc5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Publish GitHub Release + +permissions: + contents: write # for creating a release and uploading release artifacts + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + release: + runs-on: "ubuntu-latest" + steps: + - uses: actions/checkout@v3 + - name: GH Release + run: | + gh release create "${GITHUB_REF#refs/tags/}" --generate-notes + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}