Skip to content

update readme, version bump (#22) #29

update readme, version bump (#22)

update readme, version bump (#22) #29

Workflow file for this run

name: 'release'
on:
push:
tags: [ '*' ]
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54
release:
runs-on: ubuntu-22.04
needs: [ lint ]
steps:
- name: Check out code 🛒
uses: actions/checkout@v4
- name: Generate Release Notes 📝
if: github.ref_type == 'tag'
run: |
CHANGE=$(sed "/${GITHUB_REF_NAME%%-*}/,/##/!d;//d" CHANGELOG.md | awk 'NF')
echo "$CHANGE" > changelog.txt
RELEASE_TYPE=$(if [[ "$GITHUB_REF_NAME" =~ "beta" ]]; then echo "true"; else echo "false"; fi)
echo "RELEASE_TYPE=${RELEASE_TYPE}" >> $GITHUB_ENV
- name: Create Release 🎉
uses: ncipollo/[email protected]
if: github.ref_type == 'tag'
with:
bodyFile: "changelog.txt"
prerelease: ${{ env.RELEASE_TYPE }}