shared-assets
shared-assets copied to clipboard
[feat] deploy to GCP
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: '[email protected]'
- id: 'upload-file'
uses: 'google-github-actions/upload-cloud-storage@v1'
with:
path: '/path/to/file'
destination: 'bucket-name/file'
Added a gh-pages deploy in https://github.com/mdn/shared-assets/pull/8 for now as a stopgap
I'm closing for the moment, I think we will revisit deployment options at a later stage