1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2024-09-30 22:42:47 -04:00

Workflow fixes

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-07-19 07:55:21 -04:00 committed by tommytran732
parent 56943df0f1
commit 8d15765793
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -27,5 +27,4 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: public
path: public/
name: hugo