Skip to content

Commit 3fe83cb

Browse files
authored
chore(ci): always deploy docs (#7483)
1 parent 54ef1f5 commit 3fe83cb

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,22 @@ jobs:
3232
owner: context.repo.owner,
3333
repo: context.repo.repo,
3434
run_id: context.payload.workflow_run.id,
35-
artifact_name: 'artifact-docs'
35+
github_token: ${{ secrets.GITHUB_TOKEN }},
36+
artifact_name: 'artifact-docs',
37+
output_path: 'packages/docs'
3638
});
37-
core.setOutput('has-docs', 'true');
39+
return true;
3840
} catch (error) {
39-
core.setOutput('has-docs', 'false');
41+
return false;
4042
}
4143
4244
- name: Checkout code
43-
if: steps.check-artifact.outputs.has-docs == 'true'
45+
if: ${{ steps.check-artifact.outcome == 'success' }}
4446
uses: actions/checkout@v4
4547

46-
- name: Download docs artifact
47-
if: steps.check-artifact.outputs.has-docs == 'true'
48-
uses: actions/download-artifact@v4
49-
id: download-artifact
50-
with:
51-
name: artifact-docs
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
53-
run-id: ${{ github.event.workflow_run.id }}
54-
# This will download both dist/ and server/
55-
path: packages/docs
56-
5748
# not the official version, so be careful when updating
5849
- name: Deploy to Cloudflare Pages
59-
if: steps.check-artifact.outputs.has-docs == 'true'
50+
if: ${{ steps.check-artifact.outcome == 'success' }}
6051
uses: AdrianGonz97/refined-cf-pages-action@6c0d47ff7c97c48fa702b6d9f71f7e3a7c30c7d8
6152
with:
6253
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)