You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
По пушу в ветку master репозитория, который использует этот Github Action, содержимое директорий будет синхронизировано в соответствующие бакеты Google Cloud Storage.
2
-
Пример использования и инструкцию смотреть в репозитории: https://github.com/Nakilon/www-nakilon-pro
1
+
After pushing to the master branch of the repository that uses this Github Action contents of its directories will be syncronized with corresponding Google Cloud Storage buckets.
2
+
3
+
---
4
+
5
+
For example I am now updating my web home page using it. If you want to do the same:
6
+
7
+
1. make a public static website bucket as explained in relevant [GCP docs](https://cloud.google.com/storage/docs/hosting-static-website)
8
+
2. create a Service account without any permissions and download its key file
9
+
3. add it in the bucket's permissions settings as Object Admin (finding it by its email)
10
+
4. make a Github repo and a folder in it with the same name as your bucket (designed to be able to update multiple buckets from a single repo)
11
+
5. in the Secrets tab of repo settings add a secret named "secrets" in the folllowing format: "<bucket1name> <base64ofthekeyfile> <bucket2name> <base64ofthekeyfile> ..."
12
+
6. add a Workflow to your repo like this: https://github.com/Nakilon/www-nakilon-pro/blob/master/.github/workflows/sync_with_gcs.yaml
0 commit comments