Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: include phylum-ci.exe in release artifacts #477

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

maxrake
Copy link
Contributor

@maxrake maxrake commented Oct 2, 2024

This change corrects a bug in the release workflow where the phylum-ci.exe artifact is not published to the newly created GitHub release. The python-semantic-release tool has the following config, in pyproject.toml, for publishing artifacts by pattern:

[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*", "build/phylum-ci.exe"]

The issue was that the actions/upload-artifact step used phylum-ci.exe as the artifact name, which resulted in the following directory structure for the corresponding actions/download-artifact step:

./phylum-ci.exe/phylum-ci.exe

This clearly won't match the glob pattern of build/phylum-ci.exe. So, this change is a simple one: change the upload artifact name to build so that the downloaded artifact will exist at ./build/phylum-ci.exe.

This change corrects a bug in the release workflow where the
`phylum-ci.exe` artifact is not published to the newly created GitHub
release. The `python-semantic-release` tool has the following config, in
`pyproject.toml`, for publishing artifacts by pattern:

```
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*", "build/phylum-ci.exe"]
```

The issue was that the `actions/upload-artifact` step used
`phylum-ci.exe` as the artifact name, which resulted in the following
directory structure for the corresponding `actions/download-artifact`
step:

`./phylum-ci.exe/phylum-ci.exe`

This clearly won't match the glob pattern of `build/phylum-ci.exe`. So,
this change is a simple one: change the upload artifact name to `build`
so that the downloaded artifact will exist at `./build/phylum-ci.exe`.
@maxrake maxrake self-assigned this Oct 2, 2024
@maxrake maxrake requested a review from a team as a code owner October 2, 2024 18:16
@maxrake maxrake requested a review from kylewillmon October 2, 2024 18:16
@maxrake maxrake enabled auto-merge (squash) October 2, 2024 18:20
@maxrake maxrake merged commit 23c1e28 into main Oct 2, 2024
13 checks passed
@maxrake maxrake deleted the missing_artifact branch October 2, 2024 19: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.

2 participants