Skip to content

chore: add release gh action #2

chore: add release gh action

chore: add release gh action #2

Workflow file for this run

name: Release
on:
push:
release:
types: [prereleased, published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Release
id: release
run: |
echo "Creating a release..."
GOPROXY=proxy.golang.org go list -m github.com/patrickkabwe/go-validator@${{ github.event.release.tag_name }}
echo "Release created!"