Skip to content

Commit 62e2bac

Browse files
committed
upload
1 parent 0cc3b83 commit 62e2bac

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/go.yml

+33
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: Go
33
on:
44
push:
55
branches: [ master ]
6+
# Sequence of patterns matched against refs/tags
7+
tags:
8+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
69
pull_request:
710
branches: [ master ]
11+
# types: [assigned, opened, synchronize, reopened]
812

913
#on: [push, pull_request]
1014

@@ -98,6 +102,35 @@ jobs:
98102
name: binaries
99103
path: bin/
100104

105+
- name: Upload binaries to release
106+
uses: svenstaro/upload-release-action@v2
107+
with:
108+
repo_token: ${{ secrets.GITHUB_TOKEN }}
109+
file: bin/*
110+
tag: ${{ github.ref }}
111+
overwrite: true
112+
file_glob: true
113+
# - name: Create Release
114+
# id: create_release
115+
# uses: actions/create-release@v1
116+
# env:
117+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118+
# with:
119+
# tag_name: ${{ github.ref }}
120+
# release_name: Release ${{ github.ref }}
121+
# draft: false
122+
# prerelease: false
123+
# - name: Upload Release Asset
124+
# id: upload-release-asset
125+
# uses: actions/upload-release-asset@v1
126+
# env:
127+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128+
# with:
129+
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
130+
# asset_path: bin/*
131+
# asset_name: my-artifact.zip
132+
# asset_content_type: application/zip
133+
101134
# notifies coveralls that all test jobs are finished
102135
finish:
103136
name: Finish

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ WIP. Here is a pre-release version.
1616
## Features
1717

1818
- supports TCP, UDP, and Unix socket server/client developing
19-
- Write your business logical with [protocol.Interceptor](https://github.com/hedzr/go-socketlib/protocol/protocol.go#L22)
19+
- Write your business logical with [protocol.Interceptor](https://github.com/hedzr/go-socketlib/blob/master/tcp/protocol/protocol.go#L22)
2020

2121

2222

0 commit comments

Comments
 (0)