From da6025ca43d9819ab4619dc523519a3b273094fc Mon Sep 17 00:00:00 2001 From: kenriortega Date: Sat, 6 Nov 2021 15:59:16 -0400 Subject: [PATCH] ci: Change release process on `build` & `makefile` cmd for development procsess --- .github/workflows/release.yml | 56 ----------------------------------- .goreleaser.yml | 3 ++ makefile | 6 +++- 3 files changed, 8 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 6fa815e..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,56 +0,0 @@ -# name: Release Egosystem proxys binaries - -# on: -# release: -# types: [created] - -# jobs: -# releases-matrix: -# name: Release Go Binary -# runs-on: ubuntu-latest -# strategy: -# matrix: -# # build and publish in parallel: linux/amd64,windows/amd64,linux/darwin -# goos: [linux,windows,darwin] -# goarch: [amd64] -# steps: -# - uses: actions/checkout@v2 - -# - name: Set BUILD_TIME env -# run: echo BUILD_TIME=$(date --iso-8601=seconds) >> ${GITHUB_ENV} -# - name: Set APP_VERSION env -# run: echo APP_VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} - -# - uses: wangyoucao577/go-release-action@v1.16 -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} -# goos: ${{ matrix.goos }} -# goarch: ${{ matrix.goarch }} -# project_path: "./cmd/" -# binary_name: "ngonxctl-${{ env.APP_VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }}" -# ldflags: "-s -X github.com/kenriortega/ngonx/cmd/cli.buildTime=${{env.BUILD_TIME}} -X github.com/kenriortega/ngonx/cmd/cli.versionHash=${{github.sha}} -X github.com/kenriortega/ngonx/cmd/cli.version=${{env.APP_VERSION}}" - -# releases-matrix-arm: -# name: Release Go Binary -# runs-on: ubuntu-latest -# strategy: -# matrix: -# # build and publish in parallel: linux/arm -# goos: [linux] -# goarch: [arm] -# steps: -# - uses: actions/checkout@v2 - -# - name: Set BUILD_TIME env -# run: echo BUILD_TIME=$(date --iso-8601=seconds) >> ${GITHUB_ENV} -# - name: Set APP_VERSION env -# run: echo APP_VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} - -# - uses: wangyoucao577/go-release-action@v1.16 -# with: -# github_token: ${{ secrets.GITHUB_TOKEN }} -# goos: ${{ matrix.goos }} -# goarch: ${{ matrix.goarch }} -# project_path: "./cmd/" -# binary_name: "ngonxctl-${{ env.APP_VERSION }}-${{ matrix.goos }}-${{ matrix.goarch }}" -# ldflags: "-s -X github.com/kenriortega/ngonx/cmd/cli.buildTime=${{env.BUILD_TIME}} -X github.com/kenriortega/ngonx/cmd/cli.versionHash=${{github.sha}} -X github.com/kenriortega/ngonx/cmd/cli.version=${{env.APP_VERSION}}" diff --git a/.goreleaser.yml b/.goreleaser.yml index 5635fb1..4318dfd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -47,6 +47,9 @@ archives: windows: Windows 386: i386 amd64: x86_64 + files: + - README.md + - ngonx.yaml checksum: name_template: 'checksums.txt' snapshot: diff --git a/makefile b/makefile index e7e51a5..0d6ccfd 100644 --- a/makefile +++ b/makefile @@ -37,4 +37,8 @@ grpcsvr: grpccli: go run examples/calculator/calc_client/client.go releaser: - goreleaser release --snapshot --rm-dist \ No newline at end of file + goreleaser release --snapshot --rm-dist + + +build-ui: + cd web && yarn build \ No newline at end of file