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