Skip to content

v0.1.7

v0.1.7 #12

Workflow file for this run

name: Release
on:
release:
types: [prereleased, published]
permissions:
contents: write
pull-requests: write
repository-projects: write
issues: write
jobs:
release:
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!"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.release.tag_name }}
release_name: Release ${{ github.event.release.tag_name }}
body: |
Changes in this Release
${{ github.event.release.body }}