Skip to content

Fix host-based handler, remove domain mapping script #7

Fix host-based handler, remove domain mapping script

Fix host-based handler, remove domain mapping script #7

name: Publish a website directory to a private Gen website.
on:
# allow this workflow to be triggered manually from the GitHub UI
workflow_dispatch:
# trigger this workflow on every push to `main`
push:
branches:
- main
jobs:
Deploy:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
env:
WEBSITE_DIR: './public'
steps:
- uses: 'actions/checkout@v4'
- name: Authenticate with Google Cloud
uses: 'google-github-actions/[email protected]'
with:
project_id: 'probcomp-caliban'
workload_identity_provider: 'projects/110275315150/locations/global/workloadIdentityPools/gen-website-private-publishers/providers/github'
service_account: 'gen-website-private-admin@probcomp-caliban.iam.gserviceaccount.com'
audience: '//iam.googleapis.com/projects/110275315150/locations/global/workloadIdentityPools/gen-website-private-publishers/providers/github'
- name: Deploy to Google Cloud Storage
run: |
gcloud storage rsync --recursive --cache-control 'public, max-age=60' $WEBSITE_DIR gs://gen-website-private/${{github.repository}}