From 4ea5c917a92de16bd5e482a61f8da5b8da89f27a Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 19 Jul 2022 07:55:21 -0400 Subject: [PATCH] Workflow fixes Signed-off-by: Tommy --- .github/workflows/firebase-hosting-pull-request.yml | 9 ++++++--- .github/workflows/pull-request-receiver.yml | 3 +-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 95de033..34ecf03 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -22,7 +22,7 @@ jobs: run_id: ${{github.event.workflow_run.id }}, }); var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "public" + return artifact.name == "hugo" })[0]; var download = await github.actions.downloadArtifact({ owner: context.repo.owner, @@ -31,10 +31,13 @@ jobs: archive_format: 'zip', }); var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/public.zip', Buffer.from(download.data)); + fs.writeFileSync('${{github.workspace}}/hugo.zip', Buffer.from(download.data)); - name: Unzip artifact - run: unzip public.zip + run: unzip hugo.zip + + - name: Remove artifact zip + run: rm hugo.zip - name: Deploy to Firebase uses: FirebaseExtended/action-hosting-deploy@v0 diff --git a/.github/workflows/pull-request-receiver.yml b/.github/workflows/pull-request-receiver.yml index f973b0c..613fe67 100644 --- a/.github/workflows/pull-request-receiver.yml +++ b/.github/workflows/pull-request-receiver.yml @@ -27,5 +27,4 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v2 with: - name: public - path: public/ + name: hugo