From 5e46e5e4e5e65af620cbda6c0ff8c37a29baa1be Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sun, 4 Oct 2020 18:43:18 +0800 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d6874ed..ff70a2b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 -- 2.39.2