Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: revert change on release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Sep 11, 2023
1 parent dbf3312 commit 1568775
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on: # yamllint disable-line rule:truthy
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CONFIG: $HOME/.docker
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -23,23 +21,16 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.18.x

- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo tag_name=${TAG} >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run GoReleaser
run: |
docker run \
Expand All @@ -48,15 +39,15 @@ jobs:
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN \
-e SLACK_WEBHOOK \
-e DOCKER_CONFIG \
-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-network/polygon-edge
PACKAGE_NAME: github.com/topos-protocol/polygon-edge
GOLANG_CROSS_VERSION: v1.18.3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
SLACK_WEBHOOK: ${{ secrets.SLACK_EDGE_GITHUB_URL }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}

0 comments on commit 1568775

Please sign in to comment.