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 20, 2024
1 parent f8710a5 commit 54b4c40
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
INSTANCE: 'web/g'
ARTIFACT: 'webHelpHI2-all.zip'
ARTIFACT: 'webHelpG2-all.zip'

jobs:
build-docs:
Expand Down Expand Up @@ -45,3 +45,26 @@ 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: Copy files to the s3 website content bucket
run:
aws s3 sync docs-dist s3://${{ secrets.GARAGE_BUCKET_NAME }} --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.GARAGE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GARAGE_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: hel1
AWS_ENDPOINT_URL: ${{ secrets.GARAGE_ENDPOINT }}

0 comments on commit 54b4c40

Please sign in to comment.