Skip to content

Commit

Permalink
Added a release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sikachyna committed Nov 8, 2024
1 parent d9c11d6 commit 8acb2d6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create release

on:
push:
tags:
- '*'

jobs:
run-tests:
name: "Create webtrack release"

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'

- name: Display Go version
run: go version

- name: Run tests
run: go test

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
9 changes: 4 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ on:

jobs:
run-tests:
name: "Run Go tests"

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.23.x' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: '1.23.x'

- name: Display Go version
run: go version
Expand Down

0 comments on commit 8acb2d6

Please sign in to comment.