diff --git a/.github/workflows/golang-test-build.yml b/.github/workflows/golang-test-build.yml deleted file mode 100644 index 9188bb3d7d1..00000000000 --- a/.github/workflows/golang-test-build.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Test Build On Platforms -on: [pull_request] -jobs: - test_build: - strategy: - matrix: - os: [ windows, linux, darwin ] - go-version: [1.17.x] - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - - name: Cache Go modules - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-test-${{ matrix.os }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-test-${{ matrix.os }} - - - name: Install modules - run: GOOS=${{ matrix.os }} go mod tidy - - - name: run build client - run: GOOS=${{ matrix.os }} go build . - working-directory: client - - - name: run build management - run: GOOS=${{ matrix.os }} go build . - working-directory: management - - - name: run build signal - run: GOOS=${{ matrix.os }} go build . - working-directory: signal diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06ba0a40980..8147f524be9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: push: tags: - 'v*' + branches: + - main + pull_request: jobs: release: @@ -50,7 +53,7 @@ jobs: name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: - version: 1.6.3 + version: v1.6.3 args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}