Skip to content

Commit

Permalink
feat: added goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
rlardy-ulule committed Aug 31, 2023
1 parent 44a6e10 commit 84d6f21
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions .github/workflows/mover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,63 @@ name: goreleaser

on:
push:
# run only against tags
tags:
- '*'
# tags:
# - '*'

permissions:
contents: write
# packages: write
# issues: write

env:
GO_VERSION: 1.15

jobs:
linter:
timeout-minutes: 30
runs-on: ubuntu-20.04

steps:
- name: Checking out repository
uses: actions/checkout@v3

- name: Setting up Go environment
uses: actions/setup-go@v3
with:
go-version: '^${{ env.GO_VERSION }}'
cache: true
cache-dependency-path: go.sum

- name: Download gomod dependencies
run: go mod download -x

- name: Run linters
uses: golangci/golangci-lint-action@v3
with:
working-directory: ${{ env.WORKING_DIR }}
version: latest
args: -v -c .golangci.yml --timeout 10m
# skip-cache: true
# skip-pkg-cache: true
# skip-build-cache: true

goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git fetch --force --tags

- uses: actions/setup-go@v4
with:
go-version: stable
go-version: ${{ env.GO_VERSION }}

- uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 84d6f21

Please sign in to comment.