Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: continuous-integration
name: CI

on:
push:
Expand All @@ -8,6 +8,7 @@ on:

jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.58.0
Expand All @@ -25,7 +26,8 @@ jobs:
skip-pkg-cache: true
skip-build-cache: true

build:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
Expand Down
25 changes: 8 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
name: Release

on:
workflow_run:
workflows:
- "continuous-integration"
branches:
- main
types:
- completed
push:
tags:
- '*'

jobs:
release:
name: Create new release tag
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Create new release
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -21,11 +16,7 @@ jobs:
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: version_bump
uses: anothrNick/github-tag-action@1.69.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
DEFAULT_BUMP: patch
WITH_V: true
- uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
skipIfReleaseExists: true
31 changes: 31 additions & 0 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tag

on:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed

jobs:
release:
name: Create new release tag
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: version_bump
uses: anothrNick/github-tag-action@1.69.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
DEFAULT_BUMP: patch
WITH_V: true