From 8791b80ff6126b32a1d7eb08a92c89a7423194d2 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 14 Nov 2022 17:01:27 +0000 Subject: [PATCH] ci(release): really fix release job, hopefully for real this time :P --- .github/workflows/ci.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a95fa3..4078e1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,8 @@ jobs: name: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: go-version: 1.18 - name: Install dependencies @@ -22,7 +22,6 @@ jobs: http://localhost:8080/ release: - name: Release runs-on: ubuntu-latest needs: [build] if: github.ref == 'refs/heads/main' @@ -31,22 +30,28 @@ jobs: id: release-please with: command: manifest - - uses: actions/checkout@v2 + - if: ${{ steps.release-please.outputs.release_created }} + uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 - - name: Docker Login - uses: docker/login-action@v1 + - if: ${{ steps.release-please.outputs.release_created }} + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - if: ${{ steps.release-please.outputs.release_created }} + uses: docker/setup-buildx-action@v2 + - if: ${{ steps.release-please.outputs.release_created }} + name: Docker Login + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-go@v2 + - if: ${{ steps.release-please.outputs.release_created }} + uses: actions/setup-go@v3 with: go-version: 1.18 - - name: Run GoReleaser + - if: ${{ steps.release-please.outputs.release_created }} + name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: version: latest