From 6692b8d5b41d9d8fc5e4c5995dbd21812eb851e1 Mon Sep 17 00:00:00 2001 From: Bambooin Date: Fri, 18 Jun 2021 18:50:15 +0800 Subject: [PATCH] ci: add auto release github action --- .github/workflows/release_ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release_ci.yml diff --git a/.github/workflows/release_ci.yml b/.github/workflows/release_ci.yml new file mode 100644 index 0000000..f5d0b85 --- /dev/null +++ b/.github/workflows/release_ci.yml @@ -0,0 +1,29 @@ +name: Release ci +on: [tags] +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: 'recursive' + + - name: Archive config + run: make archive + + - name: Build changelog + uses: mikepenz/release-changelog-builder-action@v1 + id: changelog + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifact: "release/*.zip" + draft: true + body: | + ${{ steps.changlog.outputs.changelog }} + token: ${{ secrets.GITHUB_TOKEN }}