diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index add1a23..7dfb5df 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -21,23 +21,19 @@ jobs: apt-get update apt-get install -y pandoc wkhtmltopdf - - name: Generate HTML - run: pandoc --css=resume-css-stylesheet.css -s -o resume.html resume.md + - name: Build resume formats + run: | + pandoc --css=resume-css-stylesheet.css -s -o resume.html resume.md + wkhtmltopdf --enable-local-file-access resume.html resume.pdf + pandoc -o resume.docx --reference-doc=resume-docx-reference.docx resume.md - - name: Generate PDF - run: wkhtmltopdf --enable-local-file-access resume.html resume.pdf - - - name: Generate DOCX - run: pandoc -o resume.docx --reference-doc=resume-docx-reference.docx resume.md - - - name: Upload PDF Artifact - uses: actions/upload-artifact@v3 + - name: Upload to Forgejo “latest” release + uses: actions/forgejo-release@v2.5.0 with: - name: resume-pdf - path: resume.pdf - - - name: Upload DOCX Artifact - uses: actions/upload-artifact@v3 - with: - name: resume-docx - path: resume.docx + direction: upload + url: https://gitfor.ge + repo: musselman/resume + tag: latest + token: ${{ secrets.FORGEJO_SECRET }} + release-dir: . + override: true