Skip to content

Commit

Permalink
feat: release docs on release and not CI (rjsf-team#2856)
Browse files Browse the repository at this point in the history
* feat: release docs on release and not CI

* docs: explain release docs workflow

* docs: update contribute docs

* Update contributing.md

* Update contributing.md

* Update docs/contributing.md

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>

* use stable version of docs

* chore: revert changes

* ci: always remove v from tag

* docs: update mui and material-ui

* ci: revert docs

Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
Co-authored-by: Nick Grosenbacher <nickgrosenbacher@gmail.com>
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
  • Loading branch information
4 people authored Sep 2, 2022
1 parent c1f220f commit a2e9478
Show file tree
Hide file tree
Showing 13 changed files with 81 additions and 15 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/change-tag-name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
push:
branches:
- master

jobs:
release-on-push:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: rymndhng/release-on-push-action@master
with:
tag_prefix: ""
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.6
- run: pip install -r requirements.docs.txt
- run: mkdocs build --clean
# deploy_canary:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/master'
Expand All @@ -97,14 +107,3 @@ jobs:
# - run: npx lerna publish from-package --yes --no-verify-access --canary
# - if: always()
# run: rm .npmrc

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.6
- run: pip install -r requirements.docs.txt
- run: mkdocs build --clean
33 changes: 33 additions & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release Latest Documentation

on:
release:
types: [published]
workflow_dispatch:

jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- name: Run find-and-replace to remove v
uses: mad9000/actions-find-and-replace-string@2
id: tag_without_v
with:
source: ${{ github.event.release.tag_name }}
find: 'v'
replace: ''
- uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ steps.tag_without_v.outputs.value }}
message: "Tagged documentation release"
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.6
- run: pip install -r requirements.docs.txt
- run: mkdocs build --clean
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p align="center">
A simple <a href="http://facebook.github.io/react/">React</a> component capable of using <a href="http://json-schema.org/">JSON Schema</a> to declaratively build and customize web forms.
<br />
<a href="https://react-jsonschema-form.readthedocs.io/en/latest/"><strong>Explore the docs »</strong></a>
<a href="https://react-jsonschema-form.readthedocs.io/en/stable/"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://rjsf-team.github.io/react-jsonschema-form/">View Playground</a>
Expand Down
4 changes: 3 additions & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ is stored as the `NPM_TOKEN` secret on GitHub Actions.

### Releasing docs

Docs are automatically released using [Read The Docs](https://readthedocs.org/) based on the latest commits from the `master` branch.
Docs are automatically published using [Read The Docs](https://readthedocs.org/) upon a new Release.

You can also publish the latest release of the docs by running the [Release Latest Documentation](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow#running-a-workflow) workflow on GitHub Actions.

### Releasing the playground

Expand Down
2 changes: 2 additions & 0 deletions packages/antd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
Expand Down
2 changes: 2 additions & 0 deletions packages/bootstrap-4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
Expand Down
2 changes: 2 additions & 0 deletions packages/chakra-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Optional Chakra UI Theme properties](#optional-chakra-ui-theme-properties)
- [Custom Chakra uiSchema Chakra Property](#custom-chakra-uischema-chakra-property)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [Contact](#contact)
Expand Down
2 changes: 2 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
Expand Down
2 changes: 2 additions & 0 deletions packages/fluent-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
<!-- TABLE OF CONTENTS -->

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
Expand Down
4 changes: 3 additions & 1 deletion packages/mui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
<!-- TABLE OF CONTENTS -->

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Material UI version 5](#material-ui-version-5)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [Contact](#contact)
Expand Down
5 changes: 5 additions & 0 deletions packages/semantic-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Optional Semantic UI Theme properties](#optional-semantic-ui-theme-properties)
- [Semantic Widget Optional Properties](#semantic-widget-optional-properties)
- [Custom Semantic Widget Properties](#custom-semantic-widget-properties)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [Contact](#contact)
Expand Down

0 comments on commit a2e9478

Please sign in to comment.