From d9676023fb8e0a109670519f038e44a3838fd608 Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Fri, 2 Feb 2024 14:00:36 -0800 Subject: [PATCH] Let's do both local and main bundles in one run --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad29a21..76a5a23 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - local workflow_dispatch: concurrency: @@ -26,6 +27,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Install Node.js uses: actions/setup-node@v4 @@ -35,8 +38,11 @@ jobs: - name: Install Antora run: npm install antora - - name: Generate UI framework - run: gulp bundle + - name: Generate UI framework (local) + run: git checkout local && gulp bundle && mv ui-bundle.zip ui-bundle-local.zip + + - name: Generate UI framework (primary) + run: git checkout main && gulp bundle - name: Disable Jekyll run: touch .nojekyll