Skip to content

Commit 02d233b

Browse files
authored
chore(ci): remove docs release (#2196)
1 parent 5409ac9 commit 02d233b

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Release from "${{ github.ref_name }}" branch
2525
runs-on: ubuntu-latest
2626
# GH does not allow to limit branches in the workflow_dispatch settings so this here is a safety measure
27-
if: ${{ !inputs.docs_only && (github.ref_name == 'master' || github.ref_name == 'rc' || github.ref_name == 'release-v9' || github.ref_name == 'release-v10') }}
27+
if: ${{ !inputs.docs_only && (github.ref_name == 'master' || github.ref_name == 'rc' || startsWith(github.ref_name, 'release-v') ) }}
2828
env:
2929
NODE_OPTIONS: --max_old_space_size=4096
3030
steps:
@@ -48,28 +48,3 @@ jobs:
4848
run: >
4949
yarn semantic-release
5050
${{ inputs.dry_run && '--dry-run' || '' }}
51-
52-
docs_release:
53-
name: Publish documentation from "${{ github.ref_name }}" branch to ${{ inputs.docs_env }}
54-
runs-on: ubuntu-latest
55-
# skip during dry runs, release to production only from master, release to staging from anywhere
56-
if: ${{ !inputs.dry_run && ((inputs.docs_env == 'production' && github.ref_name == 'master') || (github.ref_name != 'master' && inputs.docs_env == 'staging')) }}
57-
outputs:
58-
target-version: $${{ steps.target-version.outputs }}
59-
steps:
60-
- name: Checkout
61-
uses: actions/checkout@v3
62-
- name: Setup Node.js
63-
uses: actions/setup-node@v3
64-
with:
65-
node-version: 20
66-
- name: Install dependencies
67-
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
68-
- name: Merge shared "@stream-io/stream-chat-css" docs
69-
run: bash scripts/merge-stream-chat-css-docs.sh node_modules/@stream-io/stream-chat-css/docs
70-
- name: Push to stream-chat-docusaurus
71-
uses: GetStream/push-stream-chat-docusaurus-action@main
72-
with:
73-
target-branch: ${{ inputs.docs_env }}
74-
env:
75-
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}

0 commit comments

Comments
 (0)