diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0b744b2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + push: + tags: + - "*" + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v3 + with: + go-version: ">=1.19.4" + cache: true + - uses: goreleaser/goreleaser-action@v4 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..729fb7a --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,27 @@ +project_name: hfapigo +builds: + - skip: true +changelog: + use: github + sort: asc + abbrev: -1 + filters: + exclude: + - "^docs:" + - "^test:" + - "(?i)updated readme(.md)*" +release: + draft: true + prerelease: auto + mode: keep-existing + name_template: "{{ .Tag }}" + header: | + ## Release {{ .Tag }} + footer: | + ## Full Changelog + + https://github.com/TannerKvarfordt/gopenai/compare/{{ .PreviousTag }}...{{ .Tag }} + +# modelines # +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj