Skip to content

Commit

Permalink
Update workflow action to sync docs to ReadMe. (#190)
Browse files Browse the repository at this point in the history
- Push to 'develop' triggers sync to Readme Sandbox
- Push to 'main' triggers sync to Readme production
  • Loading branch information
nvankampenhout authored and Ankmara committed Apr 26, 2024
1 parent f7483d1 commit ac1c72b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/readme-production-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This GitHub Actions workflow syncs Markdown files to the Bloomreach production documentation site.
name: ReadMe Production GitHub Action πŸ¦‰

on:
push:
branches:
# This workflow will run every time you push code to the following branch: `main`
# Check out GitHub's docs for more info on configuring this:
# https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
- main

jobs:
rdme-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repo πŸ“š
uses: actions/checkout@v3

- name: Run `docs` command πŸš€
uses: readmeio/rdme@v8
with:
rdme: docs Documentation --key=${{ secrets.README_PRODUCTION_API_KEY }} --version=2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This GitHub Actions workflow syncs Markdown files to the Bloomreach documentation site.
name: ReadMe GitHub Action πŸ¦‰
# This GitHub Actions workflow syncs Markdown files to the Bloomreach sandbox documentation site.
name: ReadMe Sandbox GitHub Action πŸ¦‰

on:
push:
Expand All @@ -19,4 +19,4 @@ jobs:
- name: Run `docs` command πŸš€
uses: readmeio/rdme@v8
with:
rdme: docs Documentation --key=${{ secrets.README_API_KEY }} --version=2
rdme: docs Documentation --key=${{ secrets.README_SANDBOX_API_KEY }} --version=2

0 comments on commit ac1c72b

Please sign in to comment.