automatically convert pdf to docx in pipeline #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "release" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
name: "Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install dependencies" | |
run: | | |
sudo apt install latexmk texlive-latex-base texlive-latex-extra texlive-latex-recommended pipx | |
pipx install pdf2docx | |
- name: "Build" | |
run: | | |
latexmk -pdf main.tex | |
mv "main.pdf" "UFSIT_Constitution.pdf" | |
~/.local/bin/pdf2docx convert "UFSIT_Constitution.pdf" | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: "Latest Build" | |
files: | | |
*.docx |