From 816d12b260a63bbaa352acfc2355add4b6dc8311 Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Thu, 31 Oct 2024 20:11:32 -0400 Subject: [PATCH 1/2] Recreate experimental release so tag and source links update as well --- .github/workflows/ExperimentalRelease.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ExperimentalRelease.yml b/.github/workflows/ExperimentalRelease.yml index 3d12dea1..554dcce6 100644 --- a/.github/workflows/ExperimentalRelease.yml +++ b/.github/workflows/ExperimentalRelease.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file From 8bf1cd95281558e1e63247594ba7163a5154a835 Mon Sep 17 00:00:00 2001 From: Rick Hennigan Date: Thu, 31 Oct 2024 20:12:02 -0400 Subject: [PATCH 2/2] Bugfix: PacletCICD isn't installed until Common.wl is loaded --- Scripts/BuildPaclet.wls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/BuildPaclet.wls b/Scripts/BuildPaclet.wls index cde33f29..eb2afdc2 100644 --- a/Scripts/BuildPaclet.wls +++ b/Scripts/BuildPaclet.wls @@ -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:: *) @@ -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,