Skip to content

Commit

Permalink
build: fix ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesits committed Apr 5, 2022
1 parent 86d3c3f commit 65988cb
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/golang-build.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/goreleaser-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: goreleaser-release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/goreleaser-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser-verify

on:
pull_request:
push:

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: build --snapshot --rm-dist
2 changes: 1 addition & 1 deletion azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
ArtifactName: 'snd-$(GOOS)-$(GOARCH)'
ArtifactName: 'snd'

0 comments on commit 65988cb

Please sign in to comment.