Skip to content

chore(deps): update actions/upload-artifact digest to 26f96df #57

chore(deps): update actions/upload-artifact digest to 26f96df

chore(deps): update actions/upload-artifact digest to 26f96df #57

Workflow file for this run

---
name: CI
on:
pull_request:
branches:
- main
merge_group:
push:
branches:
- main
tags:
- v*
env:
CGO_ENABLED: '0'
# renovate: datasource=github-releases depName=golangci/golangci-lint versioning=semver-coerced
GOLANGCI_LINT_VERSION: "v1.55.2"
# renovate: datasource=github-releases depName=goreleaser/goreleaser versioning=semver-coerced
GORELEASER_VERSION: "v1.23.0"
jobs:
go:
name: Go
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Test
run: go test -v ./...
- name: Clean
run: |
git clean -ffdx
git reset --hard HEAD
- name: GoReleaser (Snapshot)
if: "!startsWith(github.ref, 'refs/tags/')"
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5
with:
args: release --snapshot --clean
version: ${{ env.GORELEASER_VERSION }}
- name: Upload Snapshot
if: "!startsWith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4
with:
name: sentry-sendmail
if-no-files-found: error
path: |
dist/*.deb
dist/*.tar.gz
- name: Unshallow
if: startsWith(github.ref, 'refs/tags/')
run: git fetch --prune --unshallow
- name: GoReleaser (Release)
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: ${{ env.GORELEASER_VERSION }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}