From f5d97ffdaf4c41cda09bca425663d03058c66fe9 Mon Sep 17 00:00:00 2001 From: Leonardo Amaral Date: Tue, 29 Mar 2022 08:45:25 -0300 Subject: [PATCH] * Adding CI/CD --- .github/workflows/convert-to-pdf.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/convert-to-pdf.yml diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml new file mode 100644 index 0000000..bef9f4b --- /dev/null +++ b/.github/workflows/convert-to-pdf.yml @@ -0,0 +1,34 @@ +name: PDF + +on: + workflow_dispatch: + push: + branches: + - resume + paths: + - 'README.md' + +jobs: + pdf: + name: Build PDF + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: PDF Generation + uses: baileyjm02/markdown-to-pdf@v1 + with: + input_dir: ./ + output_dir: ./ + build_html: false + - name: Rename PDF + run: mv README.pdf leonardo_amaral_resume.pdf + - name: Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: False + title: "Curriculo em PDF" + files: leonardo_amaral_resume.pdf +