mirror of
https://github.com/PrivSec-dev/privsec.dev
synced 2024-12-23 13:21:34 -05:00
Workflow fixes
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
5311a8640d
commit
4ea5c917a9
@ -22,7 +22,7 @@ jobs:
|
|||||||
run_id: ${{github.event.workflow_run.id }},
|
run_id: ${{github.event.workflow_run.id }},
|
||||||
});
|
});
|
||||||
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
|
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
|
||||||
return artifact.name == "public"
|
return artifact.name == "hugo"
|
||||||
})[0];
|
})[0];
|
||||||
var download = await github.actions.downloadArtifact({
|
var download = await github.actions.downloadArtifact({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
@ -31,10 +31,13 @@ jobs:
|
|||||||
archive_format: 'zip',
|
archive_format: 'zip',
|
||||||
});
|
});
|
||||||
var fs = require('fs');
|
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
|
- name: Unzip artifact
|
||||||
run: unzip public.zip
|
run: unzip hugo.zip
|
||||||
|
|
||||||
|
- name: Remove artifact zip
|
||||||
|
run: rm hugo.zip
|
||||||
|
|
||||||
- name: Deploy to Firebase
|
- name: Deploy to Firebase
|
||||||
uses: FirebaseExtended/action-hosting-deploy@v0
|
uses: FirebaseExtended/action-hosting-deploy@v0
|
||||||
|
3
.github/workflows/pull-request-receiver.yml
vendored
3
.github/workflows/pull-request-receiver.yml
vendored
@ -27,5 +27,4 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: public
|
name: hugo
|
||||||
path: public/
|
|
||||||
|
Loading…
Reference in New Issue
Block a user