From 9554965eedb756facb2c4bb22d70671d05ac080d Mon Sep 17 00:00:00 2001 From: Moses Narrow <36607567+0pcom@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:29:07 -0500 Subject: [PATCH] update .goreleaser configs to populate github organization for forks --- .goreleaser-archlinux.yml | 6 +----- .goreleaser-darwin.yml | 6 +----- .goreleaser-linux.yml | 6 ++---- .goreleaser-windows.yml | 6 +----- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/.goreleaser-archlinux.yml b/.goreleaser-archlinux.yml index 3395a7a3d1..4ce8e1604d 100644 --- a/.goreleaser-archlinux.yml +++ b/.goreleaser-archlinux.yml @@ -1,16 +1,12 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com - -env: - GITHUB_ORG: $(shell git remote show origin | grep 'Fetch URL:' | sed -n 's#.*github\.com/\([^/]*\)/.*#\1#p') - release: # Repo in which the release will be created. # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: $(GITHUB_ORG) + owner: ${{ env.GITHUB_REPOSITORY_OWNER }} name: skywire diff --git a/.goreleaser-darwin.yml b/.goreleaser-darwin.yml index 0ea1c79ff2..2ab34bb6ad 100644 --- a/.goreleaser-darwin.yml +++ b/.goreleaser-darwin.yml @@ -1,16 +1,12 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com - -env: - GITHUB_ORG: $(shell git remote show origin | grep 'Fetch URL:' | sed -n 's#.*github\.com/\([^/]*\)/.*#\1#p') - release: # Repo in which the release will be created. # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: $(GITHUB_ORG) + owner: ${{ env.GITHUB_REPOSITORY_OWNER }} name: skywire diff --git a/.goreleaser-linux.yml b/.goreleaser-linux.yml index e1db414a72..54a49f8372 100644 --- a/.goreleaser-linux.yml +++ b/.goreleaser-linux.yml @@ -1,15 +1,13 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com -env: - GITHUB_ORG: $(shell git remote show origin | grep 'Fetch URL:' | sed -n 's#.*github\.com/\([^/]*\)/.*#\1#p') - + release: # Repo in which the release will be created. # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: $(GITHUB_ORG) + owner: ${{ env.GITHUB_REPOSITORY_OWNER }} name: skywire diff --git a/.goreleaser-windows.yml b/.goreleaser-windows.yml index 8d92dc82f7..81212bba0c 100644 --- a/.goreleaser-windows.yml +++ b/.goreleaser-windows.yml @@ -1,16 +1,12 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com - -env: - GITHUB_ORG: $(shell git remote show origin | grep 'Fetch URL:' | sed -n 's#.*github\.com/\([^/]*\)/.*#\1#p') - release: # Repo in which the release will be created. # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: $(GITHUB_ORG) + owner: ${{ env.GITHUB_REPOSITORY_OWNER }} name: skywire #prerelease: true