-
Notifications
You must be signed in to change notification settings - Fork 61
43 lines (37 loc) · 1.22 KB
/
reference-staging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Generate ReadMe Staging 🦉
on:
# when a PR is created in any branch except main that have made changes to the
# reference folder, run this workflow
push:
branches-ignore:
- main
pull_request:
paths:
- '.github/workflows/**'
- 'reference/**'
jobs:
# ////////////////////////////////////////////////////////////////////////
# Pull Request
# ////////////////////////////////////////////////////////////////////////
# Create a new ReadMe Version
rdme-version:
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v3
- name: Run `versions` command
uses: readmeio/rdme@v8
with:
rdme: versions:create ${{ github.event.pull_request.number }} --fork=v3.26 --main=false --beta=false --deprecated=false --isPublic=true
# Push branch content onto that ReadMe Version
rdme-docs:
runs-on: ubuntu-latest
needs:
- rdme-version
steps:
- name: Check out repo 📚
uses: actions/checkout@v3
- name: Run `docs` command 🚀
uses: readmeio/rdme@v8
with:
rdme: docs ./reference --key=${{ secrets.README_API_KEY }} --version=${{ github.event.pull_request.number }}