docs: get module from local path #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy to Google App Engine" | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release/**/*' | |
jobs: | |
deploy: | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
runs-on: ubuntu-latest | |
name: Check out and deploy to GAE | |
steps: | |
- id: 'checkout' | |
uses: 'actions/checkout@v4' | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: '${{ vars.GOOGLE_WIF_PROVIDER_NAME }}' | |
service_account: '${{ vars.GOOGLE_SERVICE_ACCOUNT_EMAIL }}' | |
- id: 'deploy' | |
name: "Deploy to App Engine" | |
uses: 'google-github-actions/deploy-appengine@v2' | |
with: | |
project_id: '${{ vars.GOOGLE_PROJECT_ID }}' | |
# Example of using the output | |
- id: 'test' | |
run: |- | |
curl '${{ steps.deploy.outputs.version_url }}' \ | |
--silent \ | |
--fail \ | |
--location \ | |
--retry 5 \ | |
--retry-connrefused \ | |
--retry-delay 5 \ | |
--retry-max-time 300 |