Skip to content

Commit

Permalink
inline default bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Jan 27, 2025
1 parent 0e8057b commit 35362c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish_private_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
destination_bucket:
type: string
required: false
default: 'gs://opengen-websites'

jobs:
Deploy:
Expand Down Expand Up @@ -49,6 +50,6 @@ jobs:
WEBSITE_DIR=./website-artifact
PARENT_DOMAIN=${{inputs.parent_domain}}
SUBDOMAIN=${{ inputs.subdomain == '' && github.event.repository.name || inputs.subdomain }}
BUCKET_PATH="${{ inputs.destination_bucket || secrets.DEFAULT_BUCKET }}/$PARENT_DOMAIN/$SUBDOMAIN"
BUCKET_PATH="${{inputs.destination_bucket}}/$PARENT_DOMAIN/$SUBDOMAIN"
gcloud storage rsync --recursive --delete-unmatched-destination-objects --cache-control 'public, max-age=60' $WEBSITE_DIR $BUCKET_PATH
echo "Published directory $WEBSITE_DIR to $SUBDOMAIN.$PARENT_DOMAIN ($BUCKET_PATH)"

0 comments on commit 35362c5

Please sign in to comment.