Skip to content

Commit

Permalink
cicd: use common documentation action
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Nov 1, 2021
1 parent f185a9b commit 8b17388
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,5 @@ jobs:
runs-on: ubuntu-latest
needs: [release]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Build
run: mdbook build --dest-dir "./book/${GITHUB_REF#refs/tags/}"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
keep_files: true
- uses: actions/checkout@v2
- uses: ./.github/actions/documentation
17 changes: 2 additions & 15 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,5 @@ jobs:
name: Deploy Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
keep_files: true
- uses: actions/checkout@v2
- uses: ./.github/actions/documentation
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ jobs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: peaceiris/actions-mdbook@v1
- uses: actions/checkout@v2
- uses: ./.github/actions/documentation
with:
mdbook-version: 'latest'
- run: mdbook build
publish: false

tests:
name: Tests
Expand Down

0 comments on commit 8b17388

Please sign in to comment.