Skip to content

Commit

Permalink
Merge pull request #875 from WolframResearch/bugfix/update-experiment…
Browse files Browse the repository at this point in the history
…al-release-tag

Bugfix: Update experimental release tag
  • Loading branch information
rhennigan authored Nov 1, 2024
2 parents bf56197 + 8bf1cd9 commit 70c092c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ExperimentalRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,14 @@ jobs:
- name: Update Release
run: |
git config --global --add safe.directory $(pwd)
if gh release view experimental; then
gh release edit experimental \
--target="${{ github.ref }}" \
--repo="${{ env.GITHUB_REPOSITORY }}" \
--title="Experimental Release" \
--prerelease
else
gh release create experimental \
--target="${{ github.ref }}" \
--repo="${{ env.GITHUB_REPOSITORY }}" \
--title="Experimental Release" \
--prerelease
gh release delete experimental --cleanup-tag --yes --repo="${{ env.GITHUB_REPOSITORY }}"
fi
- name: Upload Artifact
run: gh release upload experimental "${{ env.PACLET_BUILD_DIR }}/Wolfram__Chatbook.paclet" --clobber
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
4 changes: 2 additions & 2 deletions Scripts/BuildPaclet.wls
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ BeginPackage[ "Wolfram`ChatbookScripts`" ];
(* ::**************************************************************************************************************:: *)
(* ::Section::Closed:: *)
(*Initialization*)
Needs[ "Wolfram`PacletCICD`" -> "cicd`" ];
If[ ! TrueQ @ $loadedDefinitions, Get @ FileNameJoin @ { DirectoryName @ $InputFileName, "Common.wl" } ];
Get @ cFile @ FileNameJoin @ { DirectoryName @ $InputFileName, "UnformatFiles.wls" };
Get @ cFile @ FileNameJoin @ { DirectoryName @ $InputFileName, "BuildMX.wls" };
Needs[ "Wolfram`PacletCICD`" -> "cicd`" ];

(* ::**************************************************************************************************************:: *)
(* ::Section::Closed:: *)
Expand All @@ -17,7 +17,7 @@ Get @ cFile @ FileNameJoin @ { DirectoryName @ $InputFileName, "BuildMX.wls" };
(* ::**************************************************************************************************************:: *)
(* ::Subsection::Closed:: *)
(*Build*)
result = checkResult @ Wolfram`PacletCICD`BuildPaclet[
result = checkResult @ cicd`BuildPaclet[
$defNB,
"Check" -> False,
"ExitOnFail" -> True,
Expand Down

0 comments on commit 70c092c

Please sign in to comment.