Skip to content

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

Merged
maxrake merged 1 commit into
mainfrom
missing_artifact
Oct 2, 2024
Merged

fix: include phylum-ci.exe in release artifacts#477
maxrake merged 1 commit into
mainfrom
missing_artifact

Conversation

@maxrake
Copy link
Copy Markdown
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
@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