Skip to content

Commit

Permalink
build: Deploy to Readme pages on every push on 'main'
Browse files Browse the repository at this point in the history
This is to be able to push changes to the documentation pages without requiring a release of
Limitless UI
  • Loading branch information
joerideg committed Dec 9, 2024
1 parent b1ca353 commit aac5a22
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ permissions:
pull-requests: write

jobs:
sync_readme:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Upload Limitless UI markdown pages to Readme
uses: readmeio/rdme@v8
with:
rdme: docs ./readme --key=${{ secrets.RDME_API_KEY }} --version=${{ vars.DOCS_VERSION }}

build:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -223,19 +236,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

sync_readme:
needs: [release]
if:
${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' &&
needs.release.result == 'success' }}
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Upload Limitless UI markdown pages to Readme
uses: readmeio/rdme@v8
with:
rdme: docs ./readme --key=${{ secrets.RDME_API_KEY }} --version=${{ vars.DOCS_VERSION }}

0 comments on commit aac5a22

Please sign in to comment.