From a68718d27df7da183660d9c9815e75cc4899ae6a Mon Sep 17 00:00:00 2001 From: Loren Norman Date: Wed, 3 Jul 2024 08:11:51 -0400 Subject: [PATCH] learn 2 linux --- .github/workflows/static.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 93dcbb9..d27f2b1 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -40,11 +40,7 @@ jobs: return branchNames - # - name: Get result - # run: echo 'branches=["red", "green", "blue"]' >> "$GITHUB_OUTPUT" - # run: echo "${{fromJson(steps.list-all-branches.outputs.result)}}" - - # build each branch into dist/branch and uploads + # fan out and build every branch, upload each as an artifact build: runs-on: ubuntu-latest needs: @@ -73,6 +69,7 @@ jobs: path: './dist' name: ${{ matrix.branch }} + # reduce artifacts to a single deployment deploy: environment: name: github-pages @@ -87,7 +84,7 @@ jobs: path: './dist' - name: Move main into primary spot and verify run: | - cp -R dist/main/ dist + mv dist/main/* dist rm -rf dist/main ls -la dist