Skip to content

Commit

Permalink
Test release dist host command
Browse files Browse the repository at this point in the history
In order to test the release github action workflow, this commit
modifies it to run on pull requests instead of just tags.
  • Loading branch information
endoze committed Nov 14, 2024
1 parent 3675c85 commit 842fa8b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,11 @@ jobs:
# but also really annoying to build CI around when it needs secrets to work right.)
- id: plan
run: |
if [ -n "${{ !github.event.pull_request && github.ref_name || '' }}" ]; then
dist --version
dist host --allow-dirty --steps=create ${{ format('--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"
fi
dist --version
dist host --allow-dirty --steps=create --tag=axum-rails-cookie-v0.1.3 --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"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 842fa8b

Please sign in to comment.