Skip to content

Commit

Permalink
update .goreleaser configs to populate github organization for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Jul 13, 2023
1 parent 9049b95 commit 9554965
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
6 changes: 1 addition & 5 deletions .goreleaser-archlinux.yml
Original file line number Diff line number Diff line change
@@ -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


Expand Down
6 changes: 1 addition & 5 deletions .goreleaser-darwin.yml
Original file line number Diff line number Diff line change
@@ -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


Expand Down
6 changes: 2 additions & 4 deletions .goreleaser-linux.yml
Original file line number Diff line number Diff line change
@@ -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


Expand Down
6 changes: 1 addition & 5 deletions .goreleaser-windows.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9554965

Please sign in to comment.