]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
action修正
authorqydysky <qydysky@foxmail.com>
Sun, 4 Oct 2020 15:04:11 +0000 (23:04 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 4 Oct 2020 15:04:11 +0000 (23:04 +0800)
.github/workflows/go.yml
VERSION

index 3bc845cd412a0e2759bc48b448707e138bb26807..e20cbe96d887920e4e5607ed8bf9c3a0f54449c5 100644 (file)
@@ -18,9 +18,17 @@ jobs:
       id: create_release
       uses: release-drafter/release-drafter@v5.11.0
       env:
-          Release_Url: ${{ steps.create_release.outputs.upload_url }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
+    - name: set upload_url
+      id: set_upload_url
+      uses: noobly314/share-data@v1
+      with:
+        share-id: release_url
+        mode: set
+        key: url
+        value: ${{ steps.create_release.outputs.upload_url }}
+
   ubuntu_build:
     name: ubuntu_build
     needs: Release_Drafter
@@ -41,14 +49,22 @@ jobs:
       
     - name: zip
       run: zip -q -r release_ubuntu.zip *
-      
+    
+    - name: get upload_url
+      id: get_upload_url
+      uses: noobly314/share-data@v1
+      with:
+        share-id: release_url
+        mode: get
+        key: url
+
     - name: Upload a Release Asset
       uses: actions/upload-release-asset@v1.0.2
       env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       with:
         # The URL for uploading assets to the release
-        upload_url: ${{ job.Release_Drafter.steps.create_release.env.Release_Url }}
+        upload_url: ${{ steps.get_upload_url.outputs.data }}
         # The path to the asset you want to upload
         asset_path: ./release_ubuntu.zip
         # The name of the asset you want to upload
@@ -76,14 +92,22 @@ jobs:
       
     - name: zip
       run: .\7za.exe a -r .\release_windows.zip ./
-    
+
+    - name: get upload_url
+      id: get_upload_url
+      uses: noobly314/share-data@v1
+      with:
+        share-id: release_url
+        mode: get
+        key: url
+
     - name: Upload a Release Asset
       uses: actions/upload-release-asset@v1.0.2
       env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       with:
         # The URL for uploading assets to the release
-        upload_url: ${{ job.Release_Drafter.steps.create_release.env.Release_Url }}
+        upload_url: ${{ steps.get_upload_url.outputs.data }}
         # The path to the asset you want to upload
         asset_path: ./release_windows.zip
         # The name of the asset you want to upload
diff --git a/VERSION b/VERSION
index 06ed8fd1c3834f911f3bf5eaf33e1b4b18149900..59cfb76ce0921c1500f7a8e5aa128074c57d574a 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-202010042241
\ No newline at end of file
+202010042303
\ No newline at end of file