Skip to content

Commit

Permalink
Update deployDoc.yml (#13)
Browse files Browse the repository at this point in the history
* Update deployDoc.yml

* Update deployDoc.yml
  • Loading branch information
dm94 authored Dec 5, 2024
1 parent ba56a4d commit f070977
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/deployDoc.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
name: Deploy documentation
name: Check & deploy API documentation
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy-doc:
name: Deploy API doc on Bump
if: ${{ github.event_name == 'push' }}
name: Deploy API documentation on Bump.sh
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Deploy API documentation
uses: bump-sh/github-action@0.2
uses: bump-sh/github-action@v1
with:
doc: stiletto-api
token: ${{secrets.BUMP_TOKEN}}
file: doc/api-documentation.yml
api-diff:
if: ${{ github.event_name == 'pull_request' }}
name: Check API diff on Bump.sh
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Comment pull request with API diff
uses: bump-sh/github-action@v1
with:
doc: 423a3617-07fb-4fdc-8df3-716c50608d6e
doc: stiletto-api
token: ${{secrets.BUMP_TOKEN}}
file: stiletto.json
command: diff
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit f070977

Please sign in to comment.