From 601d6ea4f4b19d269e4056e5d8db2fec5dab5f2c Mon Sep 17 00:00:00 2001 From: Lucas Brown <54835354+imlucasbrown@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:42:31 -0500 Subject: [PATCH] conditional `NXT_FILE_ROOTS` --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 692b6c6..10f37e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,10 +55,15 @@ jobs: pip install twine pip install . - - name: Build package and upload + - name: Set NXT_FILE_ROOTS (if needed) + if: github.repository != 'nxt-dev/nxt' env: - # Packaging graph expects nxt to be cloned next to nxt_editor - # We hack the file fall backs to trick it into working + # Thepackaging graph expects nxt to be cloned next to nxt_editor + # this is not possible in GHA so we abuse the file fall backs to + # trick it into working NXT_FILE_ROOTS: '../docs/api_docs' + run: echo "NXT_FILE_ROOTS=$NXT_FILE_ROOTS" >> $GITHUB_ENV + + - name: Build package and upload run: | python -m nxt.cli -vv exec build/packaging.nxt -s /make_and_test_upload \ No newline at end of file