From a93c5ff6583795cdffe8bb64f60a30094dbcc378 Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 1 Jul 2024 17:43:32 +0800 Subject: [PATCH] Add release workflow GitHub releases will be triggered by tags pushing, you can also add some steps like website deployment in this workflow. --- .github/workflows/release.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..3689cce2 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,22 @@ +name: release + +on: + push: + tags: + - '**' + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Extract release notes + uses: ffurrer2/extract-release-notes@v2 + with: + release_notes_file: RELEASE_NOTES.md + - name: Create release + run: gh release create ${{ github.ref_name }} --notes-file RELEASE_NOTES.md + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}