Skip to content

Commit

Permalink
move docs publishing into release action (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Aug 19, 2022
1 parent 2fd61ba commit 4bed0e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 49 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/publish_docs.yaml

This file was deleted.

16 changes: 12 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}


# - name: Send a Slack notification if a publish happens
# if: steps.changesets.outputs.published == 'true'
# # You can do something when a publish happens.
# run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"
- name: Build Docs
if: steps.changesets.outputs.published == 'true'
run: yarn build-docs

- name: S3 Upload
if: steps.changesets.outputs.published == 'true'
run: aws s3 cp docs/ s3://livekit-docs/client-sdk-js --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
AWS_DEFAULT_REGION: "us-east-1"

0 comments on commit 4bed0e6

Please sign in to comment.