Yuki Takei 6 лет назад
Родитель
Сommit
deffe13dec
1 измененных файлов с 12 добавлено и 8 удалено
  1. 12 8
      .github/workflows/release.yml

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

@@ -35,11 +35,15 @@ jobs:
         git commit -am "Release v${{ env.RELEASE_VERSION }}"
         git commit -am "Release v${{ env.RELEASE_VERSION }}"
         git tag -a v${{ env.RELEASE_VERSION }} -m "v${{ env.RELEASE_VERSION }}"
         git tag -a v${{ env.RELEASE_VERSION }} -m "v${{ env.RELEASE_VERSION }}"
         git push --follow-tags origin $TMP_RELEASE_BRANCH
         git push --follow-tags origin $TMP_RELEASE_BRANCH
-        git push --delete origin $TMP_RELEASE_BRANCH
-
-    # - name: Upload release notes
-    #   uses: Roang-zero1/github-create-release-action@master
-    #   with:
-    #     created_tag: v${{ env.RELEASE_VERSION }}
-    #   env:
-    #     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        echo ::set-env name=TMP_RELEASE_BRANCH::$TMP_RELEASE_BRANCH
+
+    - name: Upload release notes
+      uses: Roang-zero1/github-create-release-action@master
+      with:
+        created_tag: v${{ env.RELEASE_VERSION }}
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+    - name: Remove temporary branch
+      run: |
+        git push --delete origin ${{ env.TMP_RELEASE_BRANCH }}