Skip to content

Commit 3c430bb

Browse files
author
Joshua Sierles
authored
Sync docs after the automated release (#3835)
1 parent 3d2730f commit 3c430bb

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

.github/workflows/auto-release.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
run_script:
12+
release:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout master branch
@@ -24,3 +24,31 @@ jobs:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
WITH_V: true
2626
DEFAULT_BUMP: "patch"
27+
28+
sync_docs:
29+
needs: release
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout flyctl
33+
uses: actions/checkout@v4
34+
- uses: jnwng/github-app-installation-token-action@778da2ab509f3ef5e4b902bc15daf25ef3e34939
35+
id: installationToken
36+
with:
37+
appId: 339363
38+
installationId: 37947271
39+
privateKey: ${{ secrets.DOCS_SYNCER_GITHUB_APP_PRIVATE_KEY }}
40+
- name: Checkout docs
41+
uses: actions/checkout@v4
42+
with:
43+
repository: superfly/docs
44+
token: ${{ steps.installationToken.outputs.token }}
45+
path: docs
46+
- uses: actions/setup-go@v5
47+
with:
48+
go-version-file: "go.mod"
49+
check-latest: true
50+
- name: Publish CLI docs
51+
id: publish-cli-docs
52+
env:
53+
GITHUB_TOKEN: ${{ steps.installationToken.outputs.token }}
54+
run: scripts/publish_docs.sh ${{ github.ref_name }}

.github/workflows/release.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -140,31 +140,3 @@ jobs:
140140
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
141141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142142
GGOOS: ${{ matrix.GOOS }}
143-
sync_docs:
144-
needs: release
145-
runs-on: ubuntu-latest
146-
if: startsWith(github.ref, 'refs/tags/v0.') && !contains(github.ref, 'pre') && !contains(github.ref, 'dev-')
147-
steps:
148-
- name: Checkout flyctl
149-
uses: actions/checkout@v4
150-
- uses: jnwng/github-app-installation-token-action@778da2ab509f3ef5e4b902bc15daf25ef3e34939
151-
id: installationToken
152-
with:
153-
appId: 339363
154-
installationId: 37947271
155-
privateKey: ${{ secrets.DOCS_SYNCER_GITHUB_APP_PRIVATE_KEY }}
156-
- name: Checkout docs
157-
uses: actions/checkout@v4
158-
with:
159-
repository: superfly/docs
160-
token: ${{ steps.installationToken.outputs.token }}
161-
path: docs
162-
- uses: actions/setup-go@v5
163-
with:
164-
go-version-file: "go.mod"
165-
check-latest: true
166-
- name: Publish CLI docs
167-
id: publish-cli-docs
168-
env:
169-
GITHUB_TOKEN: ${{ steps.installationToken.outputs.token }}
170-
run: scripts/publish_docs.sh ${{ github.ref_name }}

0 commit comments

Comments
 (0)