]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Update go.yml v0.0.2
authorqydysky <32743305+qydysky@users.noreply.github.com>
Sun, 4 Oct 2020 10:43:18 +0000 (18:43 +0800)
committerGitHub <noreply@github.com>
Sun, 4 Oct 2020 10:43:18 +0000 (18:43 +0800)
.github/workflows/go.yml

index d6874ed7f5c98b640cc226fbfc9619d2f1af5dc5..ff70a2b77a2578d0d813dc7336bae60f6806265a 100644 (file)
@@ -29,16 +29,26 @@ jobs:
             curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
             dep ensure
         fi
+        
     - name: cd demo
       run: cd demo
       
     - name: Build
       run: go build -v .
       
-    - name: Upload a Build Artifact
-      uses: actions/upload-artifact@v2.2.0
+    - name: zip
+      run: zip -q -r amd64.zip *
+      
+    - name: Upload a Release Asset
+      uses: actions/upload-release-asset@v1.0.2
+      env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       with:
-        # Artifact name
-        # A file, directory or wildcard pattern that describes what to upload
-        path: ./
-        # The desired behavior if no files are found using the provided path.
+        # The URL for uploading assets to the release
+        upload_url: ${{ steps.create_release.outputs.upload_url }}
+        # The path to the asset you want to upload
+        asset_path: ./
+        # The name of the asset you want to upload
+        asset_name: amd64.zip
+        # The content-type of the asset you want to upload. See the supported Media Types here: https://www.iana.org/assignments/media-types/media-types.xhtml for more information
+        asset_content_type: application/zip