fix: polygon edge version info #12
Workflow file for this run
This file contains 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: # yamllint disable-line rule:truthy | ||
push: | ||
branches-ignore: | ||
- "**" | ||
tags: | ||
- "v*.*.*" | ||
# to be used by fork patch-releases ^^ | ||
- "v*.*.*-*" | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.x | ||
- name: Prepare | ||
id: prepare | ||
run: | | ||
TAG=${GITHUB_REF#refs/tags/} | ||
echo tag_name=${TAG} >> $GITHUB_OUTPUT | ||
echo release_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ") >> $GITHUB_RELEASE_TIME | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Run GoReleaser | ||
run: | | ||
echo $(date -u +"%Y-%m-%dT%H:%M:%SZ") >> $RELEASE_TIME | ||
docker run \ | ||
--rm \ | ||
--privileged \ | ||
-e CGO_ENABLED=1 \ | ||
-e GITHUB_TOKEN \ | ||
-e SLACK_WEBHOOK \ | ||
-e GITHUB_REF_NAME=${GITHUB_REF_NAME} \ | ||
-e GITHUB_SHA=${GITHUB_SHA} \ | ||
-e GITHUB_REF=${GITHUB_REF} \ | ||
-e RELEASE_TIME=${RELEASE_TIME} \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v `pwd`:/go/src/$(PACKAGE_NAME) \ | ||
-w /go/src/$(PACKAGE_NAME) \ | ||
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \ | ||
--rm-dist --skip-validate | ||
env: | ||
PACKAGE_NAME: github.com/topos-protocol/polygon-edge | ||
GOLANG_CROSS_VERSION: v1.20.5 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ steps.prepare.outputs.tag_name }} | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} | ||
GITHUB_REF_NAME: ${{ GITHUB_REF_NAME }} | ||
Check failure on line 61 in .github/workflows/release.yml GitHub Actions / ReleaseInvalid workflow file
|
||