diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..b0ba805 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,41 @@ +name: goreleaser + +on: + push: + branches: + - master +jobs: + goreleaser: + runs-on: ubuntu-latest + if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Unshallow + run: git fetch --prune --unshallow + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.35.0 + env: + GITHUB_TOKEN: ${{ secrets.FOSS_PACKAGE_TOKEN }} + WITH_V: true + - name: Bump version and push tag (no v) + uses: anothrNick/github-tag-action@1.35.0 + env: + GITHUB_TOKEN: ${{ secrets.FOSS_PACKAGE_TOKEN }} + WITH_V: false + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: v0.143.0 + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..3b9a569 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,21 @@ +project_name: gowebsocket +build: + skip: true +checksum: + name_template: checksums.txt +snapshot: + name_template: '{{ .Tag }}-next' +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' +release: + github: + owner: sac007 + name: GoWebSocket + +# add a source archive at release time +source: + enabled: true \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..9ceeb25 --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module github.com/sacOO7/gowebsocket + +go 1.16 + +require ( + github.com/gorilla/websocket v1.4.2 + github.com/sacOO7/go-logger v0.0.0-20180719173527-9ac9add5a50d +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..56fb422 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/sacOO7/go-logger v0.0.0-20180719173527-9ac9add5a50d h1:5T+fbRuQbpi+WZtB2yfuu59r00F6T2HV/zGYrwX8nvE= +github.com/sacOO7/go-logger v0.0.0-20180719173527-9ac9add5a50d/go.mod h1:L5EJe2k8GwpBoGXDRLAEs58R239jpZuE7NNEtW+T7oo=