diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3570644 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: go-sarif release +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + name: releasing go-sarif + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Release + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2d65c09..30db8b8 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ coverage.txt # Dependency directories (remove the comment below to include it) # vendor/ .idea/ +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..d75750a --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,14 @@ +builds: + - skip: true + +release: + github: + owner: owenrumney + name: go-sarif + +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'