From 0621efeb4f88b67c348f09ccdec4dd0a58830b6c Mon Sep 17 00:00:00 2001 From: Sandipsinh Rathod Date: Sun, 15 Sep 2024 16:03:59 -0400 Subject: [PATCH] upload artifact --- .github/workflows/genpdf.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/genpdf.yml b/.github/workflows/genpdf.yml index facc218..b06023e 100644 --- a/.github/workflows/genpdf.yml +++ b/.github/workflows/genpdf.yml @@ -62,7 +62,21 @@ jobs: run: | ./gowitness file -f urls.txt - - name: List hxnshots directory + - name: Install imagemagick run: | - echo "SS:" - ls -l screenshots + sudo apt-get install -y imagemagick + + - name: Convert images to PDF + run: | + convert screenshots/*.png screenshots/output.pdf + echo "PDF created: screenshots/output.pdf" + + - name: Upload PDF artifact + uses: actions/upload-artifact@v3 + with: + name: slides-pdf + path: screenshots/output.pdf + - name: Print Actions run URL + run: | + echo "Download the artifact from: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" +