diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35e47da..820dba4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,8 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.commit_branch }} + fetch-depth: 0 + fetch-tags: true - uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 # Docker login @@ -51,3 +53,8 @@ jobs: target_commitish: ${{ github.event.inputs.commit_branch }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run go releaser + run: | + docker run --rm -e CGO_ENABLED -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \ + -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/go/src/exrp -w /go/src/exrp \ + goreleaser/goreleaser-cross:v1.20.2 release --clean --skip-validate