浏览代码

fix: add auto-tag

Jguer 5 年之前
父节点
当前提交
70aa7b4689
共有 2 个文件被更改,包括 14 次插入3 次删除
  1. 13 2
      .github/workflows/docker-ci.yml
  2. 1 1
      .github/workflows/docker-multiarch-tag.yml

+ 13 - 2
.github/workflows/docker-ci.yml

@@ -1,10 +1,11 @@
-name: Docker CI build
+name: Build
 # This workflow is triggered on pushes to the repository.
 on:
   push:
     paths-ignore:
     - 'doc/**'
-    - 'completions/**'
+    - 'README.md'
+    - '.gitignore'
   pull_request:
 
 jobs:
@@ -21,3 +22,13 @@ jobs:
         with:
           name: yay_release
           path: artifacts
+  tag:
+    name: Tag release
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@master
+      - name: Bump version and push tag
+        uses: mathieudutour/github-tag-action@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+    if: github.ref == 'master' && github.event_name == 'push'

+ 1 - 1
.github/workflows/docker-multiarch-tag.yml

@@ -1,4 +1,4 @@
-name: Multiarch build and release
+name: Release
 on:
   push:
     tags: