Skip to content

Commit d45c347

Browse files
committed
chore: remove redundant deploy jobs from CircleCI config
This commit eliminates the deploy jobs for production and verdaccio from the CircleCI configuration, streamlining the workflow. Additionally, it introduces comments for better clarity on the workflow requirements.
1 parent cfe79d3 commit d45c347

File tree

1 file changed

+8
-77
lines changed

1 file changed

+8
-77
lines changed

.circleci/config.yml

+8-77
Original file line numberDiff line numberDiff line change
@@ -695,63 +695,6 @@ jobs:
695695
paths:
696696
- '*/verdaccio/publish-stats'
697697

698-
deploy:
699-
docker:
700-
- image: mcr.microsoft.com/azure-cli:2.63.0
701-
steps:
702-
- attach_workspace:
703-
at: /tmp/dist
704-
- run:
705-
name: Install AzCopy
706-
command: |
707-
wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
708-
tar -xf azcopy.tar.gz
709-
mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
710-
- run:
711-
name: deploy
712-
command: |
713-
if [ $AZURE_STORAGE_SAS_TOKEN ]; then
714-
azcopy copy "/tmp/dist/*" "https://reactspectrum.blob.core.windows.net/reactspectrum${AZURE_STORAGE_SAS_TOKEN}" --recursive
715-
fi
716-
717-
# Separate deploy workflow for the test docs built w/ verdaccio packages so it doesn't hold up the other deploy workflows
718-
deploy-verdaccio:
719-
docker:
720-
- image: mcr.microsoft.com/azure-cli:2.63.0
721-
steps:
722-
- attach_workspace:
723-
at: /tmp/verdaccio_dist
724-
- run:
725-
name: Install AzCopy
726-
command: |
727-
wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
728-
tar -xf azcopy.tar.gz
729-
mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
730-
- run:
731-
name: deploy
732-
command: |
733-
if [ $AZURE_STORAGE_SAS_TOKEN ]; then
734-
for dir in /tmp/verdaccio_dist/*/verdaccio; do
735-
azcopy copy "$dir/*" "https://reactspectrum.blob.core.windows.net/reactspectrum/$CIRCLE_SHA1/verdaccio${AZURE_STORAGE_SAS_TOKEN}" --recursive
736-
done
737-
fi
738-
739-
deploy-production:
740-
docker:
741-
- image: mcr.microsoft.com/azure-cli:2.63.0
742-
steps:
743-
- attach_workspace:
744-
at: /tmp/dist
745-
- run:
746-
name: Install AzCopy
747-
command: |
748-
wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
749-
tar -xf azcopy.tar.gz
750-
mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
751-
- run:
752-
name: deploy
753-
command: azcopy copy "/tmp/dist/production/docs/*" "https://reactspectrum.blob.core.windows.net/\$web${AZURE_STORAGE_SAS_TOKEN}" --recursive
754-
755698
comment:
756699
executor: rsp
757700
steps:
@@ -902,8 +845,13 @@ workflows:
902845
- v-webpack-4
903846
- v-nextjs
904847
- v-rsp-cra-18
905-
- deploy:
848+
- comment:
849+
name: comment-pr
850+
filters:
851+
branches:
852+
ignore: main
906853
requires:
854+
- ts-diff
907855
- lint
908856
- test-ssr
909857
- test
@@ -918,7 +866,8 @@ workflows:
918866
- storybook-19
919867
- storybook-s2
920868
- docs
921-
- deploy-verdaccio:
869+
- comment:
870+
name: comment-verdaccio
922871
requires:
923872
- v-docs
924873
- v-rsp-cra-18
@@ -930,18 +879,6 @@ workflows:
930879
- v-s2-webpack
931880
- v-icon-builder
932881
- v-publish-stats
933-
- comment:
934-
name: comment-pr
935-
filters:
936-
branches:
937-
ignore: main
938-
requires:
939-
- ts-diff
940-
- deploy
941-
- comment:
942-
name: comment-verdaccio
943-
requires:
944-
- deploy-verdaccio
945882

946883
prod-docs:
947884
when:
@@ -958,12 +895,6 @@ workflows:
958895
only: main
959896
requires:
960897
- install
961-
- deploy-production:
962-
filters:
963-
branches:
964-
only: main
965-
requires:
966-
- docs-production
967898

968899
nightly:
969900
triggers:

0 commit comments

Comments
 (0)