Jelajahi Sumber

workflow: update workflow

kailong321200875 3 tahun lalu
induk
melakukan
83839ff8a1
2 mengubah file dengan 9 tambahan dan 16 penghapusan
  1. 1 1
      .github/workflows/deploy.yml
  2. 8 15
      .github/workflows/release.yml

+ 1 - 1
.github/workflows/main.yml → .github/workflows/deploy.yml

@@ -1,4 +1,4 @@
-name: deploy
+name: Deploy
 
 on:
   push:

+ 8 - 15
.github/workflows/release.yml

@@ -1,24 +1,17 @@
-name: Create Release
+name: Release
 
 on:
   push:
     tags:
-      - v*
+      - 'v*'
 
 jobs:
-  build:
-    name: Create Release
+  release:
     runs-on: ubuntu-latest
     steps:
-      - name: Checkout code
-        uses: actions/checkout@master
-
-      - name: Create Release for Tag
-        id: release_tag
-        uses: yyx990803/release-tag@master
-        env:
-          GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+      - uses: actions/checkout@v2
         with:
-          tag_name: ${{ github.ref }}
-          body: |
-            Please refer to [CHANGELOG.md](https://github.com/kailong321200875/vue-element-plus-admin/blob/master/CHANGELOG.md) for details.
+          fetch-depth: 0
+      - run: npx conventional-github-releaser -p angular
+        env:
+          CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}