Skip to content

Automatically sync docs for flyctl #42

Automatically sync docs for flyctl

Automatically sync docs for flyctl #42

Workflow file for this run

name: Automatically sync docs for flyctl
on:
workflow_run:
workflows: ["Automatically release a new version of flyctl"]
types:
- completed
workflow_dispatch:
permissions:
contents: write
jobs:
sync_docs:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout flyctl
uses: actions/checkout@v4
- uses: jnwng/github-app-installation-token-action@778da2ab509f3ef5e4b902bc15daf25ef3e34939
id: installationToken
with:
appId: 339363
installationId: 37947271
privateKey: ${{ secrets.DOCS_SYNCER_GITHUB_APP_PRIVATE_KEY }}
- name: Checkout docs
uses: actions/checkout@v4
with:
repository: superfly/docs
token: ${{ steps.installationToken.outputs.token }}
path: docs
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: Publish CLI docs
id: publish-cli-docs
env:
GITHUB_TOKEN: ${{ steps.installationToken.outputs.token }}
run: scripts/publish_docs.sh ${{ github.ref_name }}