diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4cd9e16f..af14d491 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -65,6 +65,10 @@ jobs: restore-keys: | ${{ runner.os }}-go- + - name: setup release environment + run: |- + echo 'GITHUB_TOKEN=${{secrets.GH_PAT}}' > .release-env + - name: Docker Login to ghcr.io uses: docker/login-action@v1 with: @@ -72,8 +76,6 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GH_PAT }} - - name: setup release environment - run: |- - echo 'GITHUB_TOKEN=${{secrets.GH_PAT}}' > .release-env - name: Run GoReleaser run: make release +