refactor(app): accept client dependency for better testability #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| # Pattern matched against refs/tags | |
| tags: | |
| - '**' # Push events to every tag including hierarchical tags like v1.0/beta | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| goreleaser-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '>=1.25' | |
| - name: Install task | |
| uses: jaxxstorm/action-install-gh-release@v2.1.0 | |
| with: | |
| repo: go-task/task | |
| # tag: | |
| - name: Install goreleaser | |
| uses: jaxxstorm/action-install-gh-release@v2.1.0 | |
| with: | |
| repo: goreleaser/goreleaser | |
| # tag: | |
| - | |
| # Add support for more platforms with QEMU (optional) | |
| # https://github.com/docker/setup-qemu-action | |
| name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create release | |
| shell: /usr/bin/bash {0} | |
| run: | | |
| task release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution | |
| # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | |
| HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} |