Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 38d8d62

Browse files
author
noah
committed
Add the release job
1 parent 077816d commit 38d8d62

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: .github/workflows/publish.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,31 @@ jobs:
4141
platforms: linux/amd64 # ,linux/arm64
4242
push: true
4343
tags: ${{ steps.docker_meta.outputs.tags }}
44+
45+
release:
46+
runs-on: ubuntu-latest
47+
steps:
48+
-
49+
name: Checkout
50+
uses: actions/checkout@v2
51+
-
52+
uses: actions/setup-go@v1
53+
with:
54+
go-version: '1.17'
55+
-
56+
name: test
57+
run: go test -cpu 4 -coverprofile .testCoverage.txt $(go list ./... | grep -v model/ent | grep -v mock)
58+
env:
59+
GIN_MODE: release
60+
-
61+
name: build
62+
run: sh ./scripts/build-cli.sh
63+
-
64+
name: release
65+
uses: "marvinpinto/action-automatic-releases@latest"
66+
with:
67+
repo_token: "${{ github.token }}"
68+
prerelease: true
69+
files: |
70+
release/gitploy_*.tar.gz
71+
release/gitploy_checksums.txt

0 commit comments

Comments
 (0)