Skip to content

Fix the release workflow to release assets for Linux#1587

Merged
Mzack9999 merged 2 commits intoprojectdiscovery:devfrom
szksh-lab-2:ci-remove-goreleaser-workdir
Nov 18, 2025
Merged

Fix the release workflow to release assets for Linux#1587
Mzack9999 merged 2 commits intoprojectdiscovery:devfrom
szksh-lab-2:ci-remove-goreleaser-workdir

Conversation

@suzuki-shunsuke
Copy link
Copy Markdown
Contributor

@suzuki-shunsuke suzuki-shunsuke commented Nov 16, 2025

Close #1586

Test

I've confirmed the issue was solved by running the workflow on my fork.

https://github.com/szksh-lab-2/naabu/releases/tag/v2.3.7-3
https://github.com/szksh-lab-2/naabu/actions/runs/19406245232

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Nov 16, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • .github/workflows/release-binary.yml is excluded by !**/*.yml

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review November 16, 2025 13:29
@auto-assign auto-assign bot requested a review from Mzack9999 November 16, 2025 13:29
Comment on lines +45 to +49
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}"
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub Access Token is required to create a release.
Also, in linux-amd64.yml slack and discord integrations are enabled.

announce:
slack:
enabled: true
channel: '#release'
username: GoReleaser
message_template: 'New Release: {{ .ProjectName }} {{.Tag}} is published! Check it out at {{ .ReleaseURL }}'
discord:
enabled: true
message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}'

Comment on lines -69 to -71
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}"
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In linux-arm64.yml, slack and discord integration are disabled.

announce:
slack:
enabled: false
channel: '#release'
username: GoReleaser
message_template: 'New Release: {{ .ProjectName }} {{.Tag}} is published! Check it out at {{ .ReleaseURL }}'
discord:
enabled: false
message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}'

@suzuki-shunsuke suzuki-shunsuke changed the title Remove the goreleaser-action's workdir input Fix the release workflow to release assets for Linux Nov 16, 2025
with:
version: latest
args: release -f .goreleaser/linux-amd64.yml --clean
workdir: /
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/goreleaser/goreleaser-action#inputs

workdir | String | . | Working directory (below repository root)

I'm not sure why workdir: / was set, but I think this is a bug.

@Mzack9999 Mzack9999 merged commit 1df8aab into projectdiscovery:dev Nov 18, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this to Done in main Nov 18, 2025
@suzuki-shunsuke suzuki-shunsuke deleted the ci-remove-goreleaser-workdir branch November 18, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to release assets for Linux at v2.3.6

2 participants