From ae52803aec2ab6cbada5aaab24189d736951fd6f Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 21 Dec 2021 16:52:21 +0800 Subject: [PATCH] auto release --- .github/workflows/electron.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 582b9add..116b76e6 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -21,12 +21,33 @@ jobs: ] steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + - name: Use Node.js 14.x uses: actions/setup-node@v1 with: node-version: 14.x + - name: Changelog + uses: scottbrenner/generate-changelog-action@master + id: Changelog + env: + REPO: ${{ github.repository }} + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + ${{ steps.Changelog.outputs.changelog }} + draft: false + prerelease: false + - name: Build env: GH_TOKEN: ${{ secrets.GH_PAT }}