Skip to content

Commit

Permalink
action: release version (#11)
Browse files Browse the repository at this point in the history
增加发布版本的Action
  • Loading branch information
swpfY authored Oct 16, 2023
1 parent f6721ab commit 1b34dc5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1b34dc5

Please sign in to comment.