From 4d8763c0370a4702ecdf69bcd4b4a4e8bf4a2db7 Mon Sep 17 00:00:00 2001 From: Fred Israel Date: Thu, 11 Jul 2024 12:47:51 -0300 Subject: [PATCH] trying to release --- .github/workflows/release.yaml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 70929dd..fc3bbd2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,33 +2,34 @@ name: Release on: push: - branches: - - main + tags: + - "*" + permissions: contents: write - jobs: - build-and-deploy: - runs-on: 'ubuntu-latest' - # runs-on: ${{ matrix.os }} - # strategy: - # matrix: - # os: ['ubuntu-latest', 'macOS-latest'] + goreleaser: + runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v4 - - - name: Go setup + with: + fetch-depth: 0 + - name: Set up Go uses: actions/setup-go@v5 - + with: + go-version: stable + # More assembly might be required: Docker logins, GPG, etc. + # It all depends on your needs. - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: + # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser - version: '~> v2' + # 'latest', 'nightly', or a semver + version: "~> v2" args: release --clean env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file