ci: update dependabot reviewers (#1319) #5389
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: Docs | |
# Docs build and publishes the Vuepress documentation website. | |
# This workflow is run on every pull request and push on master. | |
# The deployment of the docs is made only on each push on master. | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
Generate-Swagger-and-Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR 🛎️ | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Checkout branch 🛎️ | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build 🔧 | |
run: | |
sudo make proto-swagger-gen && sudo chown -R $USER . | |
- name: Commit ✅ | |
uses: endbug/add-and-commit@v9 | |
with: | |
add: "client/docs" | |
message: "docs: update Swagger definition" | |
push: true | |
- name: Deploy 🚀 | |
if: github.ref == 'refs/heads/master' | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: swagger-pages | |
folder: client/docs |