Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs updater workflow #1

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/update-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# this workflow is used to update the content at docs.styra.com
# when it changes in this repo.
name: Update Docs

on:
push:
branches:
- main
workflow_dispatch:

jobs:
update-docs:
name: Update Docs
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- name: Save version
run: |
mkdir -p versions
echo "${{ github.sha }}" > versions/lib.jwt

- name: Update docs
uses: leigholiver/commit-with-deploy-key@9562ffd1c0965c6d4f264e2555a569bd33ac7d05
with:
source: versions
destination_folder: imported/versions
destination_repo: StyraInc/docs
deploy_key: ${{ secrets.STYRA_DOCS_DEPLOY_KEY }}