-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update deployDoc.yml * Update deployDoc.yml
- Loading branch information
Showing
1 changed file
with
28 additions
and
5 deletions.
There are no files selected for viewing
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
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}} |