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
…& update github actions workflow
  • Loading branch information
0pcom committed Jul 13, 2023
1 parent 9554965 commit fda1378
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release
# only trigger on pull request closed events
on:
push:
tags:
- '*'
tags:
- '*'
jobs:
linux:
runs-on: ubuntu-latest
Expand All @@ -19,9 +19,10 @@ jobs:
make dep-github-release
- name: Releasing
env:
GITHUB_ORG: ${{ env.GITHUB_REPOSITORY_OWNER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make github-release

darwin:
needs: linux
runs-on: macos-latest
Expand All @@ -37,11 +38,12 @@ jobs:
brew install wget
- name: Releasing
env:
GITHUB_ORG: ${{ env.GITHUB_REPOSITORY_OWNER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make github-release-darwin
make mac-installer-release
windows:
needs: darwin
runs-on: windows-latest
Expand All @@ -58,6 +60,7 @@ jobs:
choco install make
- name: Releasing
env:
GITHUB_ORG: ${{ env.GITHUB_REPOSITORY_OWNER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make github-release-windows
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser-archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ release:
# 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: ${{ env.GITHUB_REPOSITORY_OWNER }}
owner: ${{ env.GITHUB_ORG }}
name: skywire


Expand Down
2 changes: 1 addition & 1 deletion .goreleaser-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ release:
# 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: ${{ env.GITHUB_REPOSITORY_OWNER }}
owner: ${{ env.GITHUB_ORG }}
name: skywire


Expand Down
2 changes: 1 addition & 1 deletion .goreleaser-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ release:
# 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: ${{ env.GITHUB_REPOSITORY_OWNER }}
owner: ${{ env.GITHUB_ORG }}
name: skywire


Expand Down
2 changes: 1 addition & 1 deletion .goreleaser-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ release:
# 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: ${{ env.GITHUB_REPOSITORY_OWNER }}
owner: ${{ env.GITHUB_ORG }}
name: skywire

#prerelease: true
Expand Down

0 comments on commit fda1378

Please sign in to comment.