From 41725b28028ed46afb24e73d729d39c339f80614 Mon Sep 17 00:00:00 2001 From: Moses Narrow <36607567+0pcom@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:08:37 -0500 Subject: [PATCH] update .goreleaser configs to populate github organization for forks --- .goreleaser-archlinux.yml | 7 ++++++- .goreleaser-darwin.yml | 7 ++++++- .goreleaser-linux.yml | 6 +++++- .goreleaser-windows.yml | 6 +++++- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.goreleaser-archlinux.yml b/.goreleaser-archlinux.yml index 34305b3362..72f308d73e 100644 --- a/.goreleaser-archlinux.yml +++ b/.goreleaser-archlinux.yml @@ -1,14 +1,19 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com + +env: + - name: GITHUB_ORG + value: $(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: skycoin + owner: $(GITHUB_ORG) name: skywire + #prerelease: true before: diff --git a/.goreleaser-darwin.yml b/.goreleaser-darwin.yml index 656f75af49..ef197da7ab 100644 --- a/.goreleaser-darwin.yml +++ b/.goreleaser-darwin.yml @@ -1,14 +1,19 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com + +env: + - name: GITHUB_ORG + value: $(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: skycoin + owner: $(GITHUB_ORG) name: skywire + #prerelease: true before: diff --git a/.goreleaser-linux.yml b/.goreleaser-linux.yml index cb7db438f6..9806bc8582 100644 --- a/.goreleaser-linux.yml +++ b/.goreleaser-linux.yml @@ -1,14 +1,18 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com +env: + - name: GITHUB_ORG + value: $(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: skycoin + owner: $(GITHUB_ORG) name: skywire + #prerelease: true before: diff --git a/.goreleaser-windows.yml b/.goreleaser-windows.yml index 06ff090ba8..531514006f 100644 --- a/.goreleaser-windows.yml +++ b/.goreleaser-windows.yml @@ -1,12 +1,16 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com + +env: + - name: GITHUB_ORG + value: $(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: skycoin + owner: $(GITHUB_ORG) name: skywire #prerelease: true