Skip to content

Commit

Permalink
docs: deploy docs to target env
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kurfer committed Jun 19, 2024
1 parent f8710a5 commit 2160c9d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,28 @@ jobs:
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.INSTANCE }}

deploy:
needs:
- build-docs
- test-docs
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs

- name: Unzip artifact
run: unzip -O UTF-8 -qq '${{ env.ARTIFACT }}' -d docs-dist

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.GARAGE_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.GARAGE_SECRET_ACCESS_KEY }}
aws-region: hel1

- name: Copy files to the s3 website content bucket
run:
aws s3 sync --endpoint-url ${{ secrets.GARAGE_ENDPOINT }} docs-dist s3://${{ secrets.GARAGE_BUCKET_NAME }} --delete

0 comments on commit 2160c9d

Please sign in to comment.