Skip to content

Commit 5088fc4

Browse files
committed
tweak workflow yml
1 parent 9204bd8 commit 5088fc4

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

.github/workflows/deploy-site.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
1211
steps:
1312
- name: Checkout Repository
1413
uses: actions/checkout@v3

.github/workflows/publish-pdf.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/publish-pdf.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and release PDF
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v3
14+
15+
- name: Extract assets
16+
run: docker cp $(docker run --detach quay.io/redhat-docs/redhat-docs-pdf-template):/pdf-assets ./pdf-assets
17+
18+
- name: Build PDF
19+
uses: docker://quay.io/redhat-docs/redhat-docs-pdf-template
20+
with:
21+
args: main.adoc
22+
23+
- name: Create PDF release
24+
run: |
25+
echo $GITHUB_RUN_NUMBER > version.txt
26+
mv main.pdf cnf-best-practices.pdf
27+
gh release create v$GITHUB_RUN_NUMBER cnf-best-practices.pdf
28+
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)