Skip to content

Commit

Permalink
Wait until paclet version is incremented before creating experimental…
Browse files Browse the repository at this point in the history
… release
  • Loading branch information
rhennigan committed Dec 31, 2024
1 parent bf5a45d commit 67273d4
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ExperimentalRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Experimental Release

on:
workflow_dispatch:
push:
workflow_run:
workflows: ["Increment Paclet Version"]
types:
- completed
branches: [main]

concurrency:
Expand Down Expand Up @@ -46,13 +49,16 @@ jobs:
run: |
git config --global --add safe.directory $(pwd)
if gh release view experimental; then
gh release delete experimental --cleanup-tag --yes --repo="${{ env.GITHUB_REPOSITORY }}"
if ! gh release view experimental; then
gh release create experimental \
--target="${{ github.ref }}" \
--repo="${{ env.GITHUB_REPOSITORY }}" \
--title="Experimental Release" \
--notes="This is an experimental release that's always updated with the latest build from the main branch." \
--prerelease
fi
gh release create experimental "${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet" \
--target="${{ github.ref }}" \
--repo="${{ env.GITHUB_REPOSITORY }}" \
--title="Experimental Release" \
--notes="This is an experimental release that's always updated with the latest build from the main branch." \
--prerelease
gh release upload experimental \
"${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet" \
--clobber \
--repo="${{ env.GITHUB_REPOSITORY }}"

0 comments on commit 67273d4

Please sign in to comment.