Skip to content

Commit

Permalink
feat: split lint and release pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
rlardy-ulule committed Aug 31, 2023
1 parent e5bf26e commit 3d85f6f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 32 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/mover.yml → .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
name: goreleaser
name: Linter

on:
push:
tags:
- '*'

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

env:
GO_VERSION: 1.15

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

steps:
- name: Checking out repository
Expand All @@ -35,30 +28,8 @@ jobs:
- 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: ${{ env.GO_VERSION }}

- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# skip-build-cache: true
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- '*'

env:
GO_VERSION: 1.15

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

jobs:
goreleaser:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git fetch --force --tags

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

- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3d85f6f

Please sign in to comment.