mdn/shared-assets

[feat] deploy to GCP

bsmth opened this issue · 2 comments

bsmth commented

It would be great to deploy these to a GCP bucket linked with a domain like developer.mozilla.org/assets or assets.mdn.dev or similar.

See https://github.com/google-github-actions/upload-cloud-storage

jobs:
  job_id:
    permissions:
      contents: 'read'
      id-token: 'write'

    steps:
    - id: 'checkout'
      uses: 'actions/checkout@v3'

    - id: 'auth'
      uses: 'google-github-actions/auth@v1'
      with:
        workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
        service_account: 'my-service-account@my-project.iam.gserviceaccount.com'

    - id: 'upload-file'
      uses: 'google-github-actions/upload-cloud-storage@v1'
      with:
        path: '/path/to/file'
        destination: 'bucket-name/file'