From 1b34dc59437b2cb78a84483f24cfc5153999af94 Mon Sep 17 00:00:00 2001 From: Ink <55043165+swpfY@users.noreply.github.com> Date: Mon, 16 Oct 2023 17:07:18 +0800 Subject: [PATCH] action: release version (#11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加发布版本的Action --- .editorconfig | 4 ++++ .github/workflows/release.yml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.editorconfig b/.editorconfig index 01b7d93..f485cd7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,7 @@ indent_style = tab insert_final_newline = false max_line_length = 120 tab_width = 4 + +[*.yaml] +indent_size = 2 +tab_width = 2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..daf2427 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: release version + +on: + push: + tags: + - '*' + +jobs: + release: + name: release version from tag + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - run: tar -zcvf req-preprocess.tar.gz .traefik.yml go.mod preprocess.go README.md + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + body: ${{ github.event.head_commit.message }} + files: | + req-preprocess.tar.gz