googleworkspace / apps-script-samples

Apps Script samples for Google Workspace products.
https://developers.google.com/apps-script
Apache License 2.0
4.52k stars 1.84k forks source link

How to push app scripts via github actions? #472

Open PeterLaudel opened 3 months ago

PeterLaudel commented 3 months ago

Summary

I like to push scripts via github action.

Expected Behavior

Sample URL: https://github.com/googleworkspace/apps-script-samples/blob/main/.github/workflows/publish.yaml Description:

I like to push apps script via github action. I found this example but don't understand how the login works. What is CLASP_CREDENTIALS ans how is it generated? I tried several things like Workload Identity Federation or just generate a oauth key. But the problem is that there gets open a credential page or things like a 'client_id' is missing.

vinay-google commented 3 months ago

For clasp checkout: https://github.com/google/clasp