From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sun, 4 Oct 2020 10:43:18 +0000 (+0800) Subject: Update go.yml X-Git-Tag: v0.0.2 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=5e46e5e4e5e65af620cbda6c0ff8c37a29baa1be;p=bili_danmu%2F.git Update go.yml --- 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