fix: add balance info to account when selecting signatory (#2645) #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy storybook to bucket | |
on: | |
push: | |
branches: | |
- dev | |
env: | |
S3_BUCKET: s3://spektr-storybook | |
STORING_DAYS: 180 | |
jobs: | |
deploy-to-bucket: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: ⚙️ Install dependencies | |
uses: ./.github/workflows/install-pnpm | |
- name: ⚙️ Install s3cmd | |
uses: ./.github/workflows/setup-s3cmd | |
with: | |
s3_region: nl-ams | |
s3_access_key: ${{ secrets.S3_ACCESS_KEY }} | |
s3_secret_key: ${{ secrets.S3_SECRET_KEY }} | |
- name: Build app | |
run: | | |
pnpm storybook:build | |
- name: List available S3 buckets | |
run: s3cmd ls | |
- name: Interact with object storage | |
id: interact_with_storage | |
run: | | |
base_directory="release/storybook" | |
destination_s3="${{ env.S3_BUCKET }}" | |
find "$base_directory" -type f | while read -r file; do | |
relative_path="${file#$base_directory/}" # Extract the relative path | |
s3cmd sync "$file" "${destination_s3}/${relative_path}" --acl-public | |
done |