diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 9405f76..5e758d9 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -60,26 +60,25 @@ jobs: npm install hugo --minify -# 'Release MacOS': + 'Release MacOS': # needs: build -# runs-on: macos -# steps: -# - name: Checkout -# uses: actions/checkout@v2 -# - name: Setup Go -# uses: actions/setup-go@v3 -# with: -# go-version: 1.25 -# - name: Configure -# run: | -# git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:x-oauth-basic@github.com/lmika".insteadOf "https://github.com/lmika" -# - name: Setup Goreleaser -# run: | -# go install github.com/goreleaser/goreleaser/v2@v2.12.7 -# - name: Release -# # if: startsWith(github.ref, 'refs/tags/') -# run: | -# goreleaser release -f macos.goreleaser.yml --skip=validate --clean -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }} \ No newline at end of file + runs-on: macos + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.25 + - name: Configure + run: | + git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:x-oauth-basic@github.com/lmika".insteadOf "https://github.com/lmika" + - name: Setup Goreleaser + run: | + go install github.com/goreleaser/goreleaser/v2@v2.12.7 + - name: Release + # if: startsWith(github.ref, 'refs/tags/') + run: | + goreleaser release -f macos.goreleaser.yml --skip=validate --clean + env: + HOMEBREW_TAP_PRIVATE_KEY: ${{ secrets.HOMEBREW_TAP_PRIVATE_KEY }} \ No newline at end of file diff --git a/macos.goreleaser.yml b/macos.goreleaser.yml index f12a49e..cd9b0a0 100644 --- a/macos.goreleaser.yml +++ b/macos.goreleaser.yml @@ -12,20 +12,17 @@ builds: archives: - id: zip - builds: - - dynamo-browse wrap_in_directory: true - format_overrides: - - goos: macos - format: tar.gz + formats: + - tar.gz homebrew_casks: - name: dynamo-browse repository: - owner: lmika - name: homebrew-audax - token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}" - folder: Formula + git: + url: https://lmika.dev/casks/dynamo-browse.git + private_key: "{{ .Env.HOMEBREW_TAP_PRIVATE_KEY }}" + directory: Casks homepage: https://dynamo-browse.lmika.dev/ description: TUI tools for working with DynamoDB license: MIT @@ -34,4 +31,4 @@ checksum: name_template: 'checksums-macos.txt' snapshot: - name_template: "{{ .Tag }}-next" \ No newline at end of file + version_template: "{{ .Tag }}-next" \ No newline at end of file