Skip to content

Commit

Permalink
Modify dist plan arguments for GitHub release action
Browse files Browse the repository at this point in the history
In order to ensure that dist plan runs successfully for a created tag,
this commit modifies the dist host command to include the crate name in
the tag used and to allow-dirty since we have modified the release.yml
from what cargo dist provides.
  • Loading branch information
endoze committed Nov 13, 2024
1 parent 1b87604 commit eda7139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- id: plan
run: |
if [ -n "${{ !github.event.pull_request && github.ref_name || '' }}" ]; then
dist ${{ format('host --steps=create --tag={0}', github.ref_name) }} --output-format=json > plan-dist-manifest.json
dist ${{ format('host --allow-dirty --steps=create --tag=axum-rails-cookie-{0}', github.ref_name) }} --output-format=json > plan-dist-manifest.json
echo "dist ran successfully"
cat plan-dist-manifest.json
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit eda7139

Please sign in to comment.