Update publish-pdf.yml #111
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: Build and release PDF | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Extract assets | |
run: docker cp $(docker run --detach quay.io/redhat-docs/redhat-docs-pdf-template):/pdf-assets ./pdf-assets | |
- name: Build PDF | |
uses: docker://quay.io/redhat-docs/redhat-docs-pdf-template | |
with: | |
args: main.adoc | |
- name: Create PDF release | |
run: | | |
echo $GITHUB_RUN_NUMBER > version.txt | |
mv main.pdf cnf-best-practices-guide.pdf | |
gh release create v2.0.$GITHUB_RUN_NUMBER cnf-best-practices.pdf | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |