Skip to content

fix: fix lint

fix: fix lint #151

name: release-please
on:
push:
branches:
- master
- main
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: go
package-name: librarian
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
goreleaser:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.releases_created }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: '1.20.7'
cache: true
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: TuiHub
password: ${{ secrets.GITHUB_TOKEN }}
- name: setup release environment
run: |-
echo -e 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: release publish
run: make release
- run: ls ./dist